[issue17194] operator.attrgetter is slower than a lambda

2013-02-12 Thread Florent Xicluna
Changes by Florent Xicluna : -- title: operator.attrgetter is slow -> operator.attrgetter is slower than a lambda ___ Python tracker <http://bugs.python.org/issu

[issue17194] operator.attrgetter is slow

2013-02-12 Thread Florent Xicluna
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

[issue17195] Reading source code from file on exception

2013-02-12 Thread Florent Xicluna
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

[issue17194] operator.attrgetter is slower than a lambda

2013-02-12 Thread Florent Xicluna
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

[issue19293] test_asyncio hanging for 1 hour (AIX version, hangs in test_subprocess_interactive)

2013-10-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker <http://bugs.python.org/issue19293> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18099] wsgiref sets Content-Length: 0 on 304 Not Modified

2014-07-02 Thread Florent Xicluna
Florent Xicluna added the comment: The patch proposed by Christian addresses the issue. Good to merge. -- ___ Python tracker <http://bugs.python.org/issue18

[issue17554] Compact output for regrtest

2014-07-05 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker <http://bugs.python.org/issue17554> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15974] Optional compact and colored output for regrest

2014-07-05 Thread Florent Xicluna
Changes by Florent Xicluna : -- superseder: Optional compact and colored output for regrest -> Compact output for regrtest ___ Python tracker <http://bugs.python.org/issu

[issue20898] Missing 507 response description

2014-07-05 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker <http://bugs.python.org/issue20898> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15025] httplib and http.client are missing response messages for defined WEBDAV responses, e.g., UNPROCESSABLE_ENTITY (422)

2014-07-05 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker <http://bugs.python.org/issue15025> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20280] add "predicate" to the glossary

2014-01-16 Thread Florent Xicluna
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

[issue20280] add "predicate" to the glossary

2014-01-21 Thread Florent Xicluna
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

[issue17825] Indentation.offset and SyntaxError.offset mismatch

2014-01-21 Thread Florent Xicluna
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

[issue20339] Make bytes() use tp_as_buffer for cmp

2014-01-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- components: +Interpreter Core nosy: +flox ___ Python tracker <http://bugs.python.org/issue20339> ___ ___ Python-bugs-list mailin

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-02-12 Thread Florent Xicluna
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 "

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-02-12 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +gregory.p.smith, pitrou ___ Python tracker <http://bugs.python.org/issue20611> ___ ___ Python-bugs-list mailing list Unsub

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-02-23 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker <http://bugs.python.org/issue19081> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7455] cPickle: stack underflow in load_pop()

2009-12-18 Thread Florent Xicluna
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

[issue7455] cPickle: stack underflow in load_pop()

2009-12-18 Thread Florent Xicluna
Changes by Florent Xicluna : -- type: -> crash ___ Python tracker <http://bugs.python.org/issue7455> ___ ___ Python-bugs-list mailing list Unsubscri

[issue7455] cPickle: stack underflow in load_pop()

2009-12-18 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15596/issue7455_silence_py3k_warning.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7455] cPickle: stack underflow in load_pop()

2009-12-18 Thread Florent Xicluna
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

[issue7455] cPickle: stack underflow in load_pop()

2009-12-18 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15604/issue7455_cpickle_load_pop_py3k.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7455] cPickle: stack underflow in load_pop()

2009-12-18 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15596/issue7455_silence_py3k_warning.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7455] cPickle: stack underflow in load_pop()

2009-12-18 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15605/issue7455_silence_py3k_warning.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7493] doc: patch for Doc/faq/design.rst

2009-12-19 Thread Florent Xicluna
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

[issue7495] doc: patch for py3k/Doc/faq/programming.rst

2009-12-19 Thread Florent Xicluna
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

[issue7495] doc: patch for Doc/faq/programming.rst

2009-12-19 Thread Florent Xicluna
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

[issue7495] doc: patch for Doc/faq/programming.rst

2009-12-19 Thread Florent Xicluna
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

[issue7495] doc: patch for Doc/faq/programming.rst

2009-12-19 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15615/doc_faq_programming_fix_py3k.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7495] doc: patch for Doc/faq/programming.rst

2009-12-19 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15618/doc_faq_programming_py3k_updated.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7376] "python -m doctest" results in FAIL: Doctest: __main__.DebugRunner

2009-12-20 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15392/issue7376_usage.diff ___ Python tracker <http://bugs.python.org/issue7376> ___ ___ Python-bug

[issue7376] "python -m doctest" results in FAIL: Doctest: __main__.DebugRunner

2009-12-20 Thread Florent Xicluna
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 <

[issue7376] "python -m doctest" results in FAIL: Doctest: __main__.DebugRunner

2009-12-20 Thread Florent Xicluna
Changes by Florent Xicluna : -- stage: -> patch review ___ Python tracker <http://bugs.python.org/issue7376> ___ ___ Python-bugs-list mailing list Unsubscri

[issue7441] Py3.1: Fatal Python Error: Py_Initialize...unknown encoding: chcp 65001.

2009-12-20 Thread Florent Xicluna
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

[issue4380] Deepcopy of functools.partial gives wierd exception

2009-12-20 Thread Florent Xicluna
Changes by Florent Xicluna : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue6501] Fatal LookupError: unknown encoding: cp0 on Windows embedded startup.

2009-12-20 Thread Florent Xicluna
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

[issue7381] subprocess.check_output: "docstring has inconsistent leading whitespace"

2009-12-20 Thread Florent Xicluna
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

[issue7381] subprocess.check_output: "docstring has inconsistent leading whitespace"

2009-12-20 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15625/issue7381_py3k_v3.diff ___ Python tracker <http://bugs.python.org/issue7381> ___ ___ Python-bug

[issue7376] "python -m doctest" results in FAIL: Doctest: __main__.DebugRunner

2009-12-20 Thread Florent Xicluna
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

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2009-12-20 Thread Florent Xicluna
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

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2009-12-20 Thread Florent Xicluna
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

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2009-12-20 Thread Florent Xicluna
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

[issue7553] test_long_future is faulty

2009-12-20 Thread Florent Xicluna
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)

[issue7553] test_long_future is faulty

2009-12-20 Thread Florent Xicluna
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.

[issue7553] test_long_future is faulty

2009-12-20 Thread Florent Xicluna
Changes by Florent Xicluna : -- stage: -> patch review ___ Python tracker <http://bugs.python.org/issue7553> ___ ___ Python-bugs-list mailing list Unsubscri

[issue7553] test_long_future is faulty

2009-12-20 Thread Florent Xicluna
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.

[issue7553] test_long_future is faulty

2009-12-20 Thread Florent Xicluna
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',)) ==

[issue7554] Some tests in test_cmath should use rAssertAlmostEqual incorrectly

2009-12-20 Thread Florent Xicluna
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

[issue7554] Some tests in test_cmath use rAssertAlmostEqual incorrectly

2009-12-20 Thread Florent Xicluna
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

[issue7554] Some tests in test_cmath use rAssertAlmostEqual incorrectly

2009-12-20 Thread Florent Xicluna
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

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-20 Thread Florent Xicluna
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

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-20 Thread Florent Xicluna
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

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-20 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15636/bench_rfind_algorithms.diff ___ Python tracker <http://bugs.python.org/issue7462> ___ ___ Pytho

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-20 Thread Florent Xicluna
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

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-20 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15635/stringbench_rfind.diff ___ Python tracker <http://bugs.python.org/issue7462> ___ ___ Python-bug

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-20 Thread Florent Xicluna
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)

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-20 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15636/bench_rfind_algorithms.diff ___ Python tracker <http://bugs.python.org/issue7462> ___ ___ Pytho

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-20 Thread Florent Xicluna
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

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
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

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
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

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15507/fastsearch_rfind.patch ___ Python tracker <http://bugs.python.org/issue7462> ___ ___ Python-bug

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15644/fastsearch_rfind_v2.patch ___ Python tracker <http://bugs.python.org/issue7462> ___ ___ Pytho

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
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

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
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

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
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.

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15647/issue7462_fastsearch_v2.diff ___ Python tracker <http://bugs.python.org/issue7462> ___ ___

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15637/stringbench_rfind_rindex.diff ___ Python tracker <http://bugs.python.org/issue7462> ___ ___

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15652/stringbench_fixes_and_additions.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15652/stringbench_fixes_and_additions.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15654/stringbench_fixes_and_additions_v2.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15654/stringbench_fixes_and_additions_v2.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15655/stringbench_fixes_and_additions_v3.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
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

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15638/bench_rfind_algorithms_v2.diff ___ Python tracker <http://bugs.python.org/issue7462> ___ ___

[issue7557] Imprecise description for the file.read() method

2009-12-21 Thread Florent Xicluna
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

[issue7514] doc: documentation for "sys.flags" is obsolete.

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- priority: -> low stage: -> patch review type: -> behavior ___ Python tracker <http://bugs.python.org/issue7514> ___

[issue7537] test_format fails with -j combined with -v

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- stage: needs patch -> patch review ___ Python tracker <http://bugs.python.org/issue7537> ___ ___ Python-bugs-list mai

[issue7455] cPickle: stack underflow in load_pop()

2009-12-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- priority: -> normal stage: test needed -> patch review ___ Python tracker <http://bugs.python.org/issue7455> ___ ___ Pyth

[issue1729305] test_doctest fails when run in verbose mode

2009-12-22 Thread Florent Xicluna
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

[issue7564] test_ioctl fails sometimes

2009-12-22 Thread Florent Xicluna
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_

[issue4770] binascii module, crazy error messages, unexpected behavior

2009-12-30 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15560/issue4770_binascii_py3k.diff ___ Python tracker <http://bugs.python.org/issue4770> ___ ___

[issue4770] binascii module, inconsistent behavior: some functions accept unicode string input

2009-12-30 Thread Florent Xicluna
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

[issue691291] codecs.open(filename, 'U', 'UTF-16') corrupts text

2009-12-30 Thread Florent Xicluna
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

[issue691291] codecs.open(filename, 'U', 'UTF-16') corrupts text

2009-12-30 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15435/issue691291.diff ___ Python tracker <http://bugs.python.org/issue691291> ___ ___ Python-bug

[issue7602] Doc: make clean and make update do not delete or update Doc/tools

2009-12-30 Thread Florent Xicluna
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*

[issue7487] doc: Code is not always colored

2009-12-30 Thread Florent Xicluna
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

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-31 Thread Florent Xicluna
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

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-31 Thread Florent Xicluna
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

[issue7564] test_ioctl fails when run in background

2010-01-01 Thread Florent Xicluna
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

[issue7564] test_ioctl may fail when run in background

2010-01-01 Thread Florent Xicluna
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

[issue7607] stringlib fastsearch could be improved on 64-bit builds

2010-01-03 Thread Florent Xicluna
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:

[issue7622] [patch] improve unicode methods: split() rsplit() and replace()

2010-01-03 Thread Florent Xicluna
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

[issue7622] [patch] improve unicode methods: split() rsplit() and replace()

2010-01-03 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15726/stringlib_split_replace.diff ___ Python tracker <http://bugs.python.org/issue7622> ___ ___

[issue7622] [patch] improve unicode methods: split() rsplit() and replace()

2010-01-03 Thread Florent Xicluna
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

[issue7625] bytearray needs more tests for "b.some_method()[0] is not b"

2010-01-03 Thread Florent Xicluna
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

[issue7625] bytearray needs more tests for "b.some_method()[0] is not b"

2010-01-03 Thread Florent Xicluna
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 _

[issue7625] bytearray needs more tests for "b.some_method()[0] is not b"

2010-01-03 Thread Florent Xicluna
Changes by Florent Xicluna : -- components: +Interpreter Core versions: +Python 2.6, Python 3.1, Python 3.2 ___ Python tracker <http://bugs.python.org/issue7

[issue7622] [patch] improve unicode methods: split() rsplit() and replace()

2010-01-03 Thread Florent Xicluna
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

[issue7622] [patch] improve unicode methods: split() rsplit() and replace()

2010-01-03 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15727/stringlib_split_replace_v2.diff ___ Python tracker <http://bugs.python.org/issue7622> ___ ___

[issue7622] [patch] improve unicode methods: split() rsplit() and replace()

2010-01-03 Thread Florent Xicluna
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.

<    6   7   8   9   10   11   12   13   14   >