Changes by Florent Xicluna :
--
title: operator.attrgetter is slow -> operator.attrgetter is slower than a
lambda
___
Python tracker
<http://bugs.python.org/issu
New submission from Florent Xicluna:
When two implementations give the same result, I use to run micro benchmarks to
give me an hint.
I just noticed that attrgetter is slower than a lambda here:
$ python3.3 -m timeit -s 'from operator import attrgetter; n1 =
attrgetter("__na
Florent Xicluna added the comment:
Duplicate of #8087
--
nosy: +flox
resolution: -> duplicate
status: open -> closed
superseder: -> Unupdated source file in traceback
___
Python tracker
<http://bugs.python.or
Florent Xicluna added the comment:
You're right. I've misinterpreted the figures.
Only 2.6 and 2.7 are affected --> closing the issue.
--
resolution: -> invalid
status: open -> closed
___
Python tracker
<http://bugs
Changes by Florent Xicluna :
--
nosy: +flox
___
Python tracker
<http://bugs.python.org/issue19293>
___
___
Python-bugs-list mailing list
Unsubscribe:
Florent Xicluna added the comment:
The patch proposed by Christian addresses the issue. Good to merge.
--
___
Python tracker
<http://bugs.python.org/issue18
Changes by Florent Xicluna :
--
nosy: +flox
___
Python tracker
<http://bugs.python.org/issue17554>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Florent Xicluna :
--
superseder: Optional compact and colored output for regrest -> Compact output
for regrtest
___
Python tracker
<http://bugs.python.org/issu
Changes by Florent Xicluna :
--
nosy: +flox
___
Python tracker
<http://bugs.python.org/issue20898>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Florent Xicluna :
--
nosy: +flox
___
Python tracker
<http://bugs.python.org/issue15025>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Florent Xicluna:
This term is used in various places in the documentation.
http://docs.python.org/dev/search.html?q=predicate
Probably it deserves an entry in the glossary, even if it is not specific to
Python:
http://en.wikipedia.org/wiki/Predicate_%28mathematical_logic%29
Florent Xicluna added the comment:
Then we can forget it. Thank you for your input.
--
resolution: -> rejected
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
Florent Xicluna added the comment:
Done.
The alignment error with non-ASCII chars should be fixed too, thanks to the
work of Serhiy on issue #2382.
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.p
Changes by Florent Xicluna :
--
components: +Interpreter Core
nosy: +flox
___
Python tracker
<http://bugs.python.org/issue20339>
___
___
Python-bugs-list mailin
New submission from Florent Xicluna:
I had this sporadic traceback in a project:
File "test.py", line 62, in
result = do_lqs(client, str(dnvn))
File "test.py", line 25, in do_lqs
qualif_service_id = client.create('ti.qualif.service', {})
File "
Changes by Florent Xicluna :
--
nosy: +gregory.p.smith, pitrou
___
Python tracker
<http://bugs.python.org/issue20611>
___
___
Python-bugs-list mailing list
Unsub
Changes by Florent Xicluna :
--
nosy: +flox
___
Python tracker
<http://bugs.python.org/issue19081>
___
___
Python-bugs-list mailing list
Unsubscribe:
Florent Xicluna added the comment:
The patch works correctly on 2.7.
It should be applied on trunk, and backported to other branches, too.
(issue7542 is marked as duplicate of this one)
--
nosy: +flox
versions: +Python 2.6, Python 3.1, Python 3.2
Changes by Florent Xicluna :
--
type: -> crash
___
Python tracker
<http://bugs.python.org/issue7455>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Florent Xicluna :
Added file: http://bugs.python.org/file15596/issue7455_silence_py3k_warning.diff
___
Python tracker
<http://bugs.python.org/issue7
Florent Xicluna added the comment:
I moved the test to test.pickletester, so that it can be used for
all 3 tests:
test_pickle
test_cpickle
test_xpickle
(and backported a test which was only on py3k)
--
Added file: http://bugs.python.org/file15603/issue7455_cpickle_load_pop.diff
Changes by Florent Xicluna :
Added file:
http://bugs.python.org/file15604/issue7455_cpickle_load_pop_py3k.diff
___
Python tracker
<http://bugs.python.org/issue7
Changes by Florent Xicluna :
Removed file:
http://bugs.python.org/file15596/issue7455_silence_py3k_warning.diff
___
Python tracker
<http://bugs.python.org/issue7
Changes by Florent Xicluna :
Added file: http://bugs.python.org/file15605/issue7455_silence_py3k_warning.diff
___
Python tracker
<http://bugs.python.org/issue7
Florent Xicluna added the comment:
Commit r76886 on Python 2.7 is fine.
But the patch is not merged completly on branches/py3k.
I prepared a new patch against py3k to fix what is missing.
--
status: closed -> open
Added file: http://bugs.python.org/file15
Florent Xicluna added the comment:
There's a syntax error in the string formatting example.
See additional patch.
I will consider backporting some parts of the patch to Py2.
--
status: closed -> open
versions: +Python 2.6, Python 2.7
Added file: http://bugs.python.org/f
Changes by Florent Xicluna :
--
title: doc: patch for py3k/Doc/faq/programming.rst -> doc: patch for
Doc/faq/programming.rst
___
Python tracker
<http://bugs.python.org/iss
Florent Xicluna added the comment:
Patch backported to trunk.
It fixes typos and recommend best practices 'somestring'.format(...),
and '0o777' and '22 // 3'...
--
Added file: http://bugs.python.org/file15617/doc_faq_programming.diff
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15615/doc_faq_programming_fix_py3k.diff
___
Python tracker
<http://bugs.python.org/issue7
Changes by Florent Xicluna :
Added file:
http://bugs.python.org/file15618/doc_faq_programming_py3k_updated.diff
___
Python tracker
<http://bugs.python.org/issue7
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15392/issue7376_usage.diff
___
Python tracker
<http://bugs.python.org/issue7376>
___
___
Python-bug
Florent Xicluna added the comment:
Minor update: replaced '{}' by '{0}' for compatibility with 2.6.
Ready for review and merge.
--
Added file: http://bugs.python.org/file15622/issue7376_usage.diff
___
Python tracker
<
Changes by Florent Xicluna :
--
stage: -> patch review
___
Python tracker
<http://bugs.python.org/issue7376>
___
___
Python-bugs-list mailing list
Unsubscri
Florent Xicluna added the comment:
Thank you for your report.
See #6501 about the Fatal Error
See #6058 for the feature request (cp65001 on windows).
--
resolution: -> duplicate
stage: -> committed/rejected
superseder: -> Fatal LookupError: unknown encoding: cp0 on Windows
Changes by Florent Xicluna :
--
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.o
Florent Xicluna added the comment:
Patch to prevent crash when PYTHONIOENCODING is invalid:
~ $ PYTHONIOENCODING= ./python
Fatal Python error: Py_Initialize: can't initialize sys standard streams
LookupError: unknown encoding:
Abandon
--
keywords: +patch
nosy: +flox
ver
Florent Xicluna added the comment:
Committed to r76925 (trunk) and r76926 (py3k).
Thank you Georg.
I see small remaining inconsistencies in the docstring.
Either we agree with implicit "import subprocess" or "from subprocess
import *", but we should not mix both.
Se
Changes by Florent Xicluna :
Added file: http://bugs.python.org/file15625/issue7381_py3k_v3.diff
___
Python tracker
<http://bugs.python.org/issue7381>
___
___
Python-bug
Florent Xicluna added the comment:
Variant which gives different usage messages:
~ $ ./python -m doctest
usage: doctest [-v] file ...
~ $ ./python Lib/doctest.py
usage: Lib/doctest.py [-v] file ...
--
Added file: http://bugs.python.org/file15626/issue7376_usage_v2.diff
Florent Xicluna added the comment:
Many fixes of modules and packages outside Lib/test
Dev notes:
* for bsddb and dbhash the warning message should include "module" to
be ignored by "test_support.import_module"
* patch for mailbox is copied from Lib/cgi.py
* oth
Florent Xicluna added the comment:
Patch for the compiler package and astgen.py tool.
Basically:
def __init__(self, (left, right), lineno=None):
==>
def __init__(self, leftright, lineno=None):
--
Added file: http://bugs.python.org/file15628/issue7092_compiler.d
Florent Xicluna added the comment:
Patch for pprint: when keys are not the same type, "-3" emits warnings.
Partial backport from Py3k.
--
Added file: http://bugs.python.org/file15629/issue7092_pprint.diff
___
Python tracker
<http://bu
New submission from Florent Xicluna :
This test do not test "true division" contrary to what is claimed.
for zero in ["huge / 0", "huge / 0L", "mhuge / 0", "mhuge / 0L"]:
self.assertRaises(ZeroDivisionError, eval, zero, namespace)
Florent Xicluna added the comment:
Patch which fixes the tests: call the "eval" in the module.
--
keywords: +patch
Added file: http://bugs.python.org/file15630/issue7553_test_long_future.diff
___
Python tracker
<http://bugs.python.
Changes by Florent Xicluna :
--
stage: -> patch review
___
Python tracker
<http://bugs.python.org/issue7553>
___
___
Python-bugs-list mailing list
Unsubscri
Florent Xicluna added the comment:
Removed 2.6 from the todolist. Not worth the effort.
"with self.assertRaises(...):" construct is not supported in 2.6.
--
versions: -Python 2.6
___
Python tracker
<http://bugs.python.
Florent Xicluna added the comment:
Let me show the issue:
~ $ cat bar.py
def apply_(func, args=(), kw={}):
return func(*args, **kw)
~ $ cat foo.py
from __future__ import division
import bar
def test():
assert eval('1/2') == .5
assert apply(eval, ('1/2',)) ==
New submission from Florent Xicluna :
These tests do not pass the right arguments to rAssertAlmostEqual.
They should use assertAlmostEqual instead.
(around line 123)
self.rAssertAlmostEqual(cmath.pi, pi_expected, 9,
"cmath.pi is %s; should be %s" % (cmath.pi, p
Changes by Florent Xicluna :
--
title: Some tests in test_cmath should use rAssertAlmostEqual incorrectly ->
Some tests in test_cmath use rAssertAlmostEqual incorrectly
___
Python tracker
<http://bugs.python.org/iss
Florent Xicluna added the comment:
I've done a review of this test file, and removed code duplication
between function "almostEqualF" and method "rAssertAlmostEqual".
(and changed some syntax to make "-3" happy)
--
keywords: +patch
Added fil
Florent Xicluna added the comment:
Additional test cases for rfind.
--
Added file: http://bugs.python.org/file15634/issue7462_string_tests.diff
___
Python tracker
<http://bugs.python.org/issue7
Florent Xicluna added the comment:
Bench results show the benefit.
And attached patch for stringbench tool.
--
Added file: http://bugs.python.org/file15635/stringbench_rfind.diff
___
Python tracker
<http://bugs.python.org/issue7
Changes by Florent Xicluna :
Added file: http://bugs.python.org/file15636/bench_rfind_algorithms.diff
___
Python tracker
<http://bugs.python.org/issue7462>
___
___
Pytho
Florent Xicluna added the comment:
There's a typo in the patch for stringbench.
Updated patch (with rindex tests, too).
--
Added file: http://bugs.python.org/file15637/stringbench_rfind_rindex.diff
___
Python tracker
<http://bugs.py
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15635/stringbench_rfind.diff
___
Python tracker
<http://bugs.python.org/issue7462>
___
___
Python-bug
Florent Xicluna added the comment:
Updated benchmarks.
strunicode
(ms) (ms)
== late match, 100 characters
s="ABC"*33; ("E"+s+("D"+s)*500).rfind("E"+s)
32.89 15.65 rfind (classic)
32.81 15.63 rindex (classic)
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15636/bench_rfind_algorithms.diff
___
Python tracker
<http://bugs.python.org/issue7462>
___
___
Pytho
Florent Xicluna added the comment:
Need additional patch for rpartition and rsplit on string, unicode and
bytearray objects.
--
stage: patch review -> needs patch
___
Python tracker
<http://bugs.python.org/iss
Florent Xicluna added the comment:
Updated patch with optimization for:
* rfind
* rindex
* rsplit
* rpartition
And an optimization was implemented in r46398 but never used because
"#define USE_FAST" was removed 2 hours before: r46366.
==> I changed this to activate optimizatio
Florent Xicluna added the comment:
Actually, the USE_FLAG macro was removed in r46367 (not 46366).
« needforspeed: remove remaining USE_FAST macros; if fastsearch was
broken, someone would have noticed by now ;-) »
--
___
Python tracker
<h
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15507/fastsearch_rfind.patch
___
Python tracker
<http://bugs.python.org/issue7462>
___
___
Python-bug
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15644/fastsearch_rfind_v2.patch
___
Python tracker
<http://bugs.python.org/issue7462>
___
___
Pytho
Florent Xicluna added the comment:
I reupload the patch fixed (sorry).
--
Added file: http://bugs.python.org/file15647/issue7462_fastsearch_v2.diff
___
Python tracker
<http://bugs.python.org/issue7
Florent Xicluna added the comment:
Actually I see different macros which do the same thing: I will consider
reusing STRINGLIB_CMP to re-define PyUNICODE_MATCH and PySTRING_MATCH
(or create aliases if they have the same signature).
I can prepare a "all-in-one" patch which fixes all th
Florent Xicluna added the comment:
Removing "slow" parts and unnused macros STRINGLIB_CMP and USE_FAST.
--
Added file: http://bugs.python.org/file15648/issue7462_fastsearch_v3.diff
___
Python tracker
<http://bugs.python.
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15647/issue7462_fastsearch_v2.diff
___
Python tracker
<http://bugs.python.org/issue7462>
___
___
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15637/stringbench_rfind_rindex.diff
___
Python tracker
<http://bugs.python.org/issue7462>
___
___
Changes by Florent Xicluna :
Added file:
http://bugs.python.org/file15652/stringbench_fixes_and_additions.diff
___
Python tracker
<http://bugs.python.org/issue7
Changes by Florent Xicluna :
Removed file:
http://bugs.python.org/file15652/stringbench_fixes_and_additions.diff
___
Python tracker
<http://bugs.python.org/issue7
Changes by Florent Xicluna :
Added file:
http://bugs.python.org/file15654/stringbench_fixes_and_additions_v2.diff
___
Python tracker
<http://bugs.python.org/issue7
Changes by Florent Xicluna :
Removed file:
http://bugs.python.org/file15654/stringbench_fixes_and_additions_v2.diff
___
Python tracker
<http://bugs.python.org/issue7
Changes by Florent Xicluna :
Added file:
http://bugs.python.org/file15655/stringbench_fixes_and_additions_v3.diff
___
Python tracker
<http://bugs.python.org/issue7
Florent Xicluna added the comment:
New benchmarks (and patch for the benchmark tool).
Best improvement is reached with such expression:
s="ABC"*33; (s+"E"+("D"+s)*500).rfind(s+"E") (*100)
String (classic): 93.14 ms
String (fast): 8.78 ms
U
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15638/bench_rfind_algorithms_v2.diff
___
Python tracker
<http://bugs.python.org/issue7462>
___
___
Florent Xicluna added the comment:
This section is obsolete and is removed from the documentation in r76893
an r76894. See issue #7508.
--
nosy: +flox
resolution: -> duplicate
stage: -> committed/rejected
status: open -> closed
superseder: -> Update 'file
Changes by Florent Xicluna :
--
priority: -> low
stage: -> patch review
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue7514>
___
Changes by Florent Xicluna :
--
stage: needs patch -> patch review
___
Python tracker
<http://bugs.python.org/issue7537>
___
___
Python-bugs-list mai
Changes by Florent Xicluna :
--
priority: -> normal
stage: test needed -> patch review
___
Python tracker
<http://bugs.python.org/issue7455>
___
___
Pyth
Florent Xicluna added the comment:
It still occurs on trunk.
test test_doctest crashed -- :
'ascii' codec can't encode characters in position 343-344:
ordinal not in range(128)
--
components: +Tests -Library (Lib)
nosy: +flox
versio
New submission from Florent Xicluna :
I got it to fail sometimes on trunk, when run with "-r -uall".
Debian 64bits, Python 2.7a r77004
test_ioctl
test_ioctl (test.test_ioctl.IoctlTests) ... FAIL
test_ioctl_mutate (test.test_ioctl.IoctlTests) ... FAIL
test_ioctl_signed_unsigned_
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15560/issue4770_binascii_py3k.diff
___
Python tracker
<http://bugs.python.org/issue4770>
___
___
Changes by Florent Xicluna :
--
stage: -> patch review
title: binascii module, crazy error messages, unexpected behavior -> binascii
module, inconsistent behavior: some functions accept unicode string input
___
Python tracker
Florent Xicluna added the comment:
slight update.
--
stage: -> patch review
type: feature request -> behavior
versions: +Python 2.7
Added file: http://bugs.python.org/file15697/issue691291_v2.diff
___
Python tracker
<http://bugs.p
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15435/issue691291.diff
___
Python tracker
<http://bugs.python.org/issue691291>
___
___
Python-bug
New submission from Florent Xicluna :
In the Doc/ directory, the "make ..." commands do not behave as expected.
*make clean*
It should remove all tools in "tools" directory: docutils, jinja2,
pygments, sphinx.
Currently it removes only "tools/sphinx"
*make update*
Florent Xicluna added the comment:
Thank you.
Doc/README.txt and Doc/make.bat need update too.
Note: issue7602 is a follow up regarding the *make clean* and *make
update* commands.
--
status: closed -> open
___
Python tracker
&l
Florent Xicluna added the comment:
I checked the code, and it is the right thing:
Example 1 (fastsearch):
s, p = "ABCDEABCF", "BCD"
s.rfind(p)
# i = 6 is first candidate, but "BCF" != "BCD"
# then s[i-1] = "A" is not part of patt
Florent Xicluna added the comment:
The benchmark tests show significant improvements in most cases up to 10
times faster.
And I found no test case which show performance regression (using the
"stringbench" benchmark from GvR, and additional tests).
Moreover, the very same algorithm
Florent Xicluna added the comment:
It fails if the test is run in background, and there's another process
in foreground.
Example 1:
~ $ (./python Lib/test/regrtest.py test_ioctl &) && tail -f /dev/null
test_ioctl
test test_ioctl failed -- multiple errors occurred; run in
Changes by Florent Xicluna :
--
title: test_ioctl fails when run in background -> test_ioctl may fail when run
in background
___
Python tracker
<http://bugs.python.org/iss
Florent Xicluna added the comment:
Another place where this optimization will apply:
"Objects/unicodeobject.c" for the bloom filters:
#define BLOOM(mask, ch) ((mask & (1 << ((ch) & 0x1F
--
___
Python tracker
<http:
New submission from Florent Xicluna :
Content of the patch:
- removed code duplication between bytearray/string/unicode
- new header "stringlib/split.h" with common methods:
stringlib_split/_rsplit/_splitlines
- added "maxcount" argument to "stringlib_count&q
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15726/stringlib_split_replace.diff
___
Python tracker
<http://bugs.python.org/issue7622>
___
___
Florent Xicluna added the comment:
You're right. Oups.
--
Added file: http://bugs.python.org/file15727/stringlib_split_replace_v2.diff
___
Python tracker
<http://bugs.python.org/i
New submission from Florent Xicluna :
There's not enough tests to verify such cases:
- b.split()[0] is not b
- b.rsplit()[0] is not b
- b.splitlines()[0] is not b
- b.partition('.')[0] is not b
- b.rpartition('.')[0] is not b
- (other ?)
However similar tests exi
Florent Xicluna added the comment:
And each test comes with a new bug :)
>>> x = bytearray('abc')
>>> x.partition('.')[0] is x
True
>>> x.rpartition('.')[2] is x
True
--
priority: low -> normal
_
Changes by Florent Xicluna :
--
components: +Interpreter Core
versions: +Python 2.6, Python 3.1, Python 3.2
___
Python tracker
<http://bugs.python.org/issue7
Florent Xicluna added the comment:
Mutable methods split() splitlines() and partition() fixed.
And added optimization for all immutables methods.
--
Added file: http://bugs.python.org/file15730/stringlib_split_replace_v3.diff
___
Python tracker
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15727/stringlib_split_replace_v2.diff
___
Python tracker
<http://bugs.python.org/issue7622>
___
___
Florent Xicluna added the comment:
added "Makefile.pre.in".
--
Added file: http://bugs.python.org/file15732/stringlib_split_replace_v3b.diff
___
Python tracker
<http://bugs.python.
1001 - 1100 of 1386 matches
Mail list logo