[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/file15730/stringlib_split_replace_v3.diff ___ Python tracker <http://bugs.python.org/issue7622> ___ ___

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

2010-01-04 Thread Florent Xicluna
Florent Xicluna added the comment: Patch for some additional test cases attached. The bug "b.partition('.')[0] is b" is fixed with the patch proposed on issue7622. -- keywords: +patch Added file: http://bugs.python.org/file15733/

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

2010-01-04 Thread Florent Xicluna
Florent Xicluna added the comment: There's some reference leaking somewhere... Will investigate. ~ $ ./python Lib/test/regrtest.py -R 2:3: test_unicode test_unicode leaked [7, 7, 7] references, sum=21 -- ___ Python tracker <http://bugs.py

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

2010-01-04 Thread Florent Xicluna
Florent Xicluna added the comment: Refleak fixed in PyUnicode_Splitlines. -- stage: -> patch review Added file: http://bugs.python.org/file15734/stringlib_split_replace_v3c.diff ___ Python tracker <http://bugs.python.org/iss

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

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

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

2010-01-04 Thread Florent Xicluna
Florent Xicluna added the comment: > A few comments on coding style: Thank you for your remarks. I will update the patch accordingly. > * make sure that the name of a symbol matches the value, e.g. > > #define LONG_BITMASK (LONG_BIT-1) > #define BLOOM(mask, ch) ((ma

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

2010-01-04 Thread Florent Xicluna
Florent Xicluna added the comment: > * function declarations should not put parameters on new lines: > > +stringlib_splitlines( > +PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, > +int keepends > +) > +{ I copied the style of "strin

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

2010-01-04 Thread Florent Xicluna
Florent Xicluna added the comment: Patch updated: * coding style * added macros BLOOM_ADD to unicodeobject.c and fastsearch.h (and removed LONG_BITMASK) -- Added file: http://bugs.python.org/file15735/stringlib_split_replace_v4.diff ___ Python

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

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

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

2010-01-04 Thread Florent Xicluna
Florent Xicluna added the comment: And now, the figures. There's no gain for the string methods. Some unicode methods are faster: split/rsplit/replace: Most significant results: --- bench_slow.log Trunk +++ bench_fast.log Patched string unicode (ms) (ms)comment ==

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

2010-01-04 Thread Florent Xicluna
Florent Xicluna added the comment: Fixed a problem with the splitlines optimization: use PyList_Append instead of PyList_SET_ITEM because there's no preallocated list in this case. -- Added file: http://bugs.python.org/file15737/stringlib_split_replace_v4b

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

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

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

2010-01-04 Thread Florent Xicluna
Florent Xicluna added the comment: Updated "lib_many_fixes" patch: * added filterwarning for pprint * added fixes for Lib/sunau.py and Lib/unittest/case.py Ready for review and merge: * issue7092_lib_many_fixes_v2.diff * issue7092_compiler.diff -- Added

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

2010-01-04 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15627/issue7092_lib_many_fixes.diff ___ Python tracker <http://bugs.python.org/issue7092> ___ ___

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

2010-01-04 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15629/issue7092_pprint.diff ___ Python tracker <http://bugs.python.org/issue7092> ___ ___ Python-bug

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

2010-01-04 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15738/issue7092_lib_many_fixes_v2.diff ___ Python tracker <http://bugs.python.org/issue7092> ___ ___

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

2010-01-04 Thread Florent Xicluna
Florent Xicluna added the comment: I learned something. -- Added file: http://bugs.python.org/file15740/issue7092_lib_many_fixes_v3.diff ___ Python tracker <http://bugs.python.org/issue7

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

2010-01-04 Thread Florent Xicluna
Florent Xicluna added the comment: The test case for the previous issue. -- Added file: http://bugs.python.org/file15741/issue7622_test_splitlines.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7638] Counterintuitive str.splitlines() inconsistency.

2010-01-04 Thread Florent Xicluna
Florent Xicluna added the comment: IMHO this code will do the trick: while not request_buffer.endswith(('\r', '\n')): request_buffer += self.conn.recv(1024) print("Got a line!") print("Got an empty line!") self.handleRequest

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

2010-01-04 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15744/issue7622_test_splitlines.diff ___ Python tracker <http://bugs.python.org/issue7622> ___ ___

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

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

[issue7626] Entity references without semicolon in HTMLParser

2010-01-05 Thread Florent Xicluna
Florent Xicluna added the comment: It is a documented behavior. http://bip.cnrs-mrs.fr/bip10/scowl.htm#semi Quoted from issue500073: "If you want to process such a document in a specific way, I recommend to subclass HTMLParser, overriding unknown_entityref." -- nosy: +flox

[issue7626] Entity references without semicolon in HTMLParser

2010-01-05 Thread Florent Xicluna
Florent Xicluna added the comment: For the record, this is valid HTML 4.01 Strict: Sample La clé La clé des champs La clé des champs Tested with http://validator.w3.org/check and Mozilla Firefox 3.5.6 Reference: http://www.is-thought.co.uk/book/sgml-6.htm#General But HTML5 should

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

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

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

2010-01-05 Thread Florent Xicluna
Florent Xicluna added the comment: Slight update: * Objects/unicodeobject.c - moved STRINGLIB_ISLINEBREAK to unicodedefs.h - removed FROM_UNICODE: use STRINGLIB_IS_UNICODE instead * Objects/stringlib/find.h - use STRINGLIB_WANT_CONTAINS_OBJ in find.h (similar to current py3k

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

2010-01-05 Thread Florent Xicluna
Florent Xicluna added the comment: And the Py3k patch. (note: previous update v4b -> v4c minimize the differences between Py2 and Py3 implementations) -- versions: +Python 3.2 Added file: http://bugs.python.org/file15750/stringlib_split_replace_py3k.d

[issue7643] What is an ASCII linebreak?

2010-01-06 Thread Florent Xicluna
New submission from Florent Xicluna : Bytes objects and Unicode objects do not agree on ASCII linebreaks. ## Python 2 for s in '\x0a\x0d\x1c\x1d\x1e': print u'a{}b'.format(s).splitlines(1), 'a{}b'.format(s).splitlines(1) # [u'a\n', u'b'] [&#

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

2010-01-06 Thread Florent Xicluna
Florent Xicluna added the comment: Still some "-3" warnings to silence: ./python -3m "collections" >/dev/null ./python -3c "import Cookie" ./python -3c "import idlelib.rpc" ./python -3c "import logging.handlers" ./python -3c "import

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

2010-01-06 Thread Florent Xicluna
Florent Xicluna added the comment: +1 to remove this boring cPickle message. cStringIO do not print such messages. -- ___ Python tracker <http://bugs.python.org/issue7

[issue7649] "u'%c' % char" broken for chars in range '\x80'-'\xFF'

2010-01-07 Thread Florent Xicluna
Florent Xicluna added the comment: Tested on 2.5... ~ $ python2.5 Python 2.5.2 (r252:60911, Jan 4 2009, 21:59:32) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> u'%c' % '

[issue7455] cPickle: stack underflow in load_pop()

2010-01-07 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15605/issue7455_silence_py3k_warning.diff ___ Python tracker <http://bugs.python.org/issue7

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

2010-01-07 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15773/issue7092_cpickle.diff ___ Python tracker <http://bugs.python.org/issue7092> ___ ___ Python-bug

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

2010-01-07 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15740/issue7092_lib_many_fixes_v3.diff ___ Python tracker <http://bugs.python.org/issue7092> ___ ___

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

2010-01-07 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15628/issue7092_compiler.diff ___ Python tracker <http://bugs.python.org/issue7092> ___ ___ Pytho

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

2010-01-07 Thread Florent Xicluna
Florent Xicluna added the comment: The Big Patch™. It removes 99% of noisy deprecation messages. -- Added file: http://bugs.python.org/file15776/issue7092_Lib_tests_big_patch.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7532] Extended slicing with classic class behaves strangely

2010-01-07 Thread Florent Xicluna
Florent Xicluna added the comment: I would suggest to keep the tests, even if the bug is closed. -- Added file: http://bugs.python.org/file15779/issue7532_wontfix_tests.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7654] [patch] Enable additional bytes and memoryview tests.

2010-01-07 Thread Florent Xicluna
New submission from Florent Xicluna : Some tests in test_bytes are XXX. They could be enabled. Additionally the BaseBytesTest.test_index() is duplicated. This patch enable the additional tests and remove dead code. -- components: Tests files: enable_bytes_memoryview_tests.diff

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

2010-01-08 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15776/issue7092_Lib_tests_big_patch.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7643] What is an ASCII linebreak?

2010-01-08 Thread Florent Xicluna
Florent Xicluna added the comment: Some technical background. == Unicode == According to the Unicode Standard Annex #9, a character with bidirectional class B is a "Paragraph Separator". And “Because a Paragraph Separator breaks lines, there will be at most one per line, at the e

[issue7643] What is an ASCII linebreak?

2010-01-08 Thread Florent Xicluna
Florent Xicluna added the comment: It's confusing. There's a specific annex UAX #14 which defines "Line Breaking Properties". Some properties are defines as "Mandatory Line Breaks (non-tailorable)": BK, CR, LF, NL And t

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

2010-01-08 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15787/issue7092_syntax_imports.diff ___ Python tracker <http://bugs.python.org/issue7092> ___ ___ Pytho

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

2010-01-08 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15788/issue7092_check_warnings.diff ___ Python tracker <http://bugs.python.org/issue7092> ___ ___ Pytho

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

2010-01-08 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15789/issue7092_filterwarnings.diff ___ Python tracker <http://bugs.python.org/issue7092> ___ ___ Pytho

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

2010-01-08 Thread Florent Xicluna
Florent Xicluna added the comment: I split the Big Patch™ into pieces. It should be easier to review and merge. - issue7092_syntax_imports.diff --> Only syntax and import_module(m, deprecated=True) - issue7092_check_warnings.diff --> Use test.test_support.check_wa

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

2010-01-08 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15790/issue7092_json_sqlite.diff ___ Python tracker <http://bugs.python.org/issue7092> ___ ___ Pytho

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

2010-01-08 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15793/issue7092_regrtest_clean.diff ___ Python tracker <http://bugs.python.org/issue7092> ___ ___ Pytho

[issue7026] test_urllib: unsetting missing 'env' variable

2010-01-08 Thread Florent Xicluna
Florent Xicluna added the comment: The method does not work as expected. See msg97419: -- Author: Sridhar Ratnakumar (srid) Date: 2010-01-08 18:26 I get this error while running Python 2.6.4 tests (on 64-bit Linux box

[issue1658] "RuntimeError: dictionary changed size during iteration" in Tkinter

2010-01-08 Thread Florent Xicluna
Florent Xicluna added the comment: > test_urllib > test test_urllib failed -- Traceback (most recent call last): > File "/home/apy/rrun/tmp/autotest/apy/lib/python2.6/test/test_urllib.py", > line 104, in setUp > for k, v in os.environ.iteritems(): > RuntimeEr

[issue7026] test_urllib: unsetting missing 'env' variable

2010-01-08 Thread Florent Xicluna
Florent Xicluna added the comment: Index: Lib/test/test_urllib.py === --- Lib/test/test_urllib.py (revision 77361) +++ Lib/test/test_urllib.py (working copy) @@ -101,7 +101,7 @@ # Records changes to env vars

[issue7026] test_urllib: unsetting missing 'env' variable

2010-01-08 Thread Florent Xicluna
Changes by Florent Xicluna : -- ___ Python tracker <http://bugs.python.org/issue7026> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue7026] test_urllib: unsetting missing 'env' variable

2010-01-08 Thread Florent Xicluna
Florent Xicluna added the comment: Index: Lib/test/test_urllib.py === --- Lib/test/test_urllib.py (revision 77361) +++ Lib/test/test_urllib.py (working copy) @@ -101,7 +101,7 @@ # Records changes to env vars

[issue7026] test_urllib: unsetting missing 'env' variable

2010-01-08 Thread Florent Xicluna
Florent Xicluna added the comment: Thanks. It should be propagated to 2.7. -- versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue7026> ___ ___

[issue7532] Extended slicing with classic class behaves strangely

2010-01-09 Thread Florent Xicluna
Florent Xicluna added the comment: Here it is, with some cleaning and simple Bytes/Bytearray tests. And Bytearray tests backported to 2.7. -- Added file: http://bugs.python.org/file15801/issue7532_wontfix_tests_py3k.diff ___ Python tracker <h

[issue7532] Extended slicing with classic class behaves strangely

2010-01-09 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15802/issue7532_bytearray.diff ___ Python tracker <http://bugs.python.org/issue7532> ___ ___ Python-bug

[issue7532] Extended slicing with classic class behaves strangely

2010-01-09 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15801/issue7532_wontfix_tests_py3k.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7532] Extended slicing with classic class behaves strangely

2010-01-09 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15804/issue7532_wontfix_tests_py3k.diff ___ Python tracker <http://bugs.python.org/issue7532> ___ ___

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

2010-01-09 Thread Florent Xicluna
Florent Xicluna added the comment: Proposed in the patch for issue #7622. -- stage: needs patch -> superseder: -> [patch] improve unicode methods: split() rsplit() and replace() ___ Python tracker <http://bugs.python.org/

[issue3599] test_pydoc after test_urllib2 causes exception in Popen.__del__

2010-01-09 Thread Florent Xicluna
Florent Xicluna added the comment: Since nobody (and no bot) reported this error in twelve months, we may close it. -- resolution: -> works for me status: open -> pending ___ Python tracker <http://bugs.python.org/

[issue7643] What is an ASCII linebreak?

2010-01-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- keywords: +patch Added file: http://bugs.python.org/file15806/issue7643_remove_deprecation.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7643] What is an ASCII linebreak?

2010-01-09 Thread Florent Xicluna
Florent Xicluna added the comment: Here is draft of the patch to do what is proposed by Marc André on msg97440 (add VT and FF). Additionnally I upgraded the UCD 5.1 -> 5.2. The implementation uses field 16 as defined in "py3k" implementation of "makeunicodedata.py&qu

[issue7643] What is a Unicode line break character?

2010-01-10 Thread Florent Xicluna
Florent Xicluna added the comment: I don't know what to do about this: > - FS, GS, RS are combined marks (CM): “Prohibit a line break between >the character and the preceding character” I know they are not commonly used. So we can keep them as line breaks. But if we comply st

[issue6965] tmpnam should not be used if tempfile or mkstemp are available

2010-01-10 Thread Florent Xicluna
Florent Xicluna added the comment: I get similar warnings while building on Debian AMD64: (...) libpython2.7.a(posixmodule.o): In function `posix_tmpnam': ./Modules/posixmodule.c:7193: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp' libpython2.7.a(posixmodule.

[issue2973] _ssl compiler warnings

2010-01-10 Thread Florent Xicluna
Florent Xicluna added the comment: Still occurs on dev and py3k. And patch applies correctly. -- nosy: +flox versions: -Python 3.0 ___ Python tracker <http://bugs.python.org/issue2

[issue6965] tmpnam should not be used if tempfile or mkstemp are available

2010-01-10 Thread Florent Xicluna
Changes by Florent Xicluna : -- type: -> compile error ___ Python tracker <http://bugs.python.org/issue6965> ___ ___ Python-bugs-list mailing list Unsubscri

[issue2973] _ssl compiler warnings

2010-01-10 Thread Florent Xicluna
Florent Xicluna added the comment: It occurs on Debian Lenny AMD64. -- ___ Python tracker <http://bugs.python.org/issue2973> ___ ___ Python-bugs-list mailin

[issue6965] tmpnam should not be used if tempfile or mkstemp are available

2010-01-10 Thread Florent Xicluna
Florent Xicluna added the comment: Then close it as duplicate of issue486434, which was closed for the same reason. -- resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue7661] compiling ctypes fails with non-ascii path

2010-01-10 Thread Florent Xicluna
Florent Xicluna added the comment: Patch attached. -- keywords: +patch nosy: +flox stage: needs patch -> patch review versions: +Python 3.2 Added file: http://bugs.python.org/file15815/issue7661_ctypes_path.diff ___ Python tracker &l

[issue7661] compiling ctypes fails with non-ascii path

2010-01-10 Thread Florent Xicluna
Changes by Florent Xicluna : -- components: +Build, ctypes ___ Python tracker <http://bugs.python.org/issue7661> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7661] compiling ctypes fails with non-ascii path

2010-01-10 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15815/issue7661_ctypes_path.diff ___ Python tracker <http://bugs.python.org/issue7661> ___ ___ Pytho

[issue7661] compiling ctypes fails with non-ascii path

2010-01-10 Thread Florent Xicluna
Florent Xicluna added the comment: Fixed typo in previous patch. -- Added file: http://bugs.python.org/file15816/issue7661_ctypes_path.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7661] compiling ctypes fails with non-ascii path

2010-01-10 Thread Florent Xicluna
Florent Xicluna added the comment: It fails if path contains space, too. Additional patch fixes this case. -- Added file: http://bugs.python.org/file15817/issue7661_ctypes_path_space.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7665] test_urllib2 fails if path contains "\"

2010-01-10 Thread Florent Xicluna
New submission from Florent Xicluna : /tmp/py2u… → un\icode $ ./python Lib/test/regrtest.py test_urllib2 test_urllib2 test test_urllib2 failed -- Traceback (most recent call last): File "/tmp/py2u… → un\icode/Lib/test/test_urllib2.py", line 36, in test_trivial f = urllib2.urlope

[issue7666] test_lib2to3 fails if path contains space

2010-01-10 Thread Florent Xicluna
New submission from Florent Xicluna : test_lib2to3 diff: opérande supplémentaire « unicode/Lib/lib2to3/pytree.py » diff: Pour en savoir davantage, faites: « diff --help ». test test_lib2to3 failed -- Traceback (most recent call last): File "/tmp/py2u… → un\icode/Lib/lib2to3/

[issue7665] test_urllib2 and test_ntpath fail if path contains "\"

2010-01-10 Thread Florent Xicluna
Florent Xicluna added the comment: Similar issue with test_ntpath. /tmp/py2u… → un\icode $ ./python Lib/test/regrtest.py test_ntpath test_ntpath test test_ntpath failed -- Traceback (most recent call last): File "/tmp/py2u… → un\icode/Lib/test/test_ntpath.py", line 171, in te

[issue7667] test_doctest fails with non-ascii path

2010-01-10 Thread Florent Xicluna
New submission from Florent Xicluna : /tmp/py2u…→unicode $ ./python Lib/test/regrtest.py test_doctest test_doctest ** File "/tmp/py2u…→unicode/Lib/test/test_doctest.py", line 2052, in test.test_doctest.test_DocFileSu

[issue7668] test_httpservers fails with non-ascii path

2010-01-10 Thread Florent Xicluna
New submission from Florent Xicluna : /tmp/py2u…→unicode $ ./python Lib/test/regrtest.py test_httpservers test_httpservers File "/tmp/tmplX9agF/cgi-bin/file1.py", line 1 SyntaxError: Non-ASCII character '\xe2' in file /tmp/tmplX9agF/cgi-bin/file1.py on line 1, but no en

[issue7669] test_unicode_file fails with non-ascii path

2010-01-10 Thread Florent Xicluna
New submission from Florent Xicluna : /tmp/py2u…→unicode $ ./python Lib/test/regrtest.py test_unicode_file test_unicode_file test test_unicode_file failed -- Traceback (most recent call last): File "/tmp/py2u…→unicode/Lib/test/test_unicode_file.py", line 173, in test_single_file

[issue7661] compiling ctypes fails with non-ascii path

2010-01-10 Thread Florent Xicluna
Florent Xicluna added the comment: Updated: added quotes on line 2319. -- Added file: http://bugs.python.org/file15820/issue7661_ctypes_path_space.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7661] compiling ctypes fails with non-ascii path

2010-01-10 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15817/issue7661_ctypes_path_space.diff ___ Python tracker <http://bugs.python.org/issue7661> ___ ___

[issue7671] test_popen fails if path contains semi-colon ";"

2010-01-10 Thread Florent Xicluna
New submission from Florent Xicluna : /tmp/semi;colon $ ./python -3 Lib/test/regrtest.py test_popen test_popen sh: /tmp/semi: Aucun fichier ou répertoire de ce type sh: colon/python: Aucun fichier ou répertoire de ce type test test_popen failed -- Traceback (most recent call last): File "

[issue7671] test_popen fails if path contains special char like ";"

2010-01-10 Thread Florent Xicluna
Florent Xicluna added the comment: Patch attached. -- keywords: +patch stage: -> patch review title: test_popen fails if path contains semi-colon ";" -> test_popen fails if path contains special char like ";" Added file: http://bugs.python.org/file15821

[issue7671] test_popen fails if path contains special char like ";"

2010-01-11 Thread Florent Xicluna
Florent Xicluna added the comment: With r77420, it fails when path contains backslash "\". Using '"%s" -c "..."' it does not fail. -- resolution: fixed -> status: closed -> open ___ Pyt

[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Florent Xicluna
Florent Xicluna added the comment: Confirmed. With Python 2: >>> import pydoc >>> pydoc.pipepager(u'tütdelüt\n', 'cat') Traceback (most recent call last): File "", line 1, in File "./Lib/pydoc.py", line 1357, in pipepager

[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Florent Xicluna
Florent Xicluna added the comment: The unicode text is sent to the subprocess without encoding. It is encoded implicitly to ASCII (sys.getdefaultencoding()). This patch performs explicit encoding. Tests added. -- keywords: +patch stage: needs patch -> patch review versions: +Pyt

[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15828/issue7675_pydoc.diff ___ Python tracker <http://bugs.python.org/issue7675> ___ ___ Python-bug

[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Florent Xicluna
Florent Xicluna added the comment: New patch: backward compatibility preserved. -- Added file: http://bugs.python.org/file15830/issue7675_pydoc_v2.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15830/issue7675_pydoc_v2.diff ___ Python tracker <http://bugs.python.org/issue7675> ___ ___ Pytho

[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15831/issue7675_pydoc_v2.diff ___ Python tracker <http://bugs.python.org/issue7675> ___ ___ Python-bug

[issue7448] when piping output between subprocesses some fd is left open blocking forever

2010-01-11 Thread Florent Xicluna
Changes by Florent Xicluna : -- resolution: -> duplicate status: open -> closed superseder: -> Popen.subprocess change close_fds default to True ___ Python tracker <http://bugs.python.o

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2010-01-11 Thread Florent Xicluna
Florent Xicluna added the comment: It would be nice to upgrade ElementTree for 2.7 and 3.2, at least. -- versions: -Python 2.6, Python 3.1 ___ Python tracker <http://bugs.python.org/issue6

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

2010-01-12 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15814/unnamed ___ Python tracker <http://bugs.python.org/issue7092> ___ ___ Python-bugs-list mailin

[issue3426] os.path.abspath with unicode argument should call os.getcwdu

2010-01-12 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker <http://bugs.python.org/issue3426> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue767645] incorrect os.path.supports_unicode_filenames

2010-01-12 Thread Florent Xicluna
Florent Xicluna added the comment: Additionally it filters out test_pep277 on some platforms. But seemingly, it is not needed anymore with this patch. -- nosy: +flox resolution: later -> Added file: http://bugs.python.org/file15842/issue767645_test_pep277

[issue7671] test_popen fails if path contains special char like ";"

2010-01-13 Thread Florent Xicluna
Florent Xicluna added the comment: It triggers some Windows buildbot failures. http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%20trunk/builds/2837 -- ___ Python tracker <http://bugs.python.org/issue7

[issue7691] test_bsddb3 files are not always removed when test fails

2010-01-13 Thread Florent Xicluna
New submission from Florent Xicluna : The series of failures 2808-2838 in buildbot x86 XP-4 is due to a file which was not removed after test 2807 was aborted. http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%20trunk/builds/2807 -- components: Tests keywords: buildbot

[issue3892] bsddb: test01_basic_replication fails sometimes

2010-01-13 Thread Florent Xicluna
Florent Xicluna added the comment: Still occurs, on 2010-01-13. http://www.python.org/dev/buildbot/all/builders/x86%20Ubuntu%20trunk/builds/264 -- nosy: +flox ___ Python tracker <http://bugs.python.org/issue3

[issue7385] MemoryView_FromObject crashes if PyBuffer_GetBuffer fails

2010-01-13 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker <http://bugs.python.org/issue7385> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7696] Improve Memoryview/Buffer documentation

2010-01-13 Thread Florent Xicluna
New submission from Florent Xicluna : Various notes while reading the Memoryview documentation: - “memoryviews allow Python code to access the internal data of an object that supports the buffer protocol without copying. Memory can be interpreted as simple bytes or complex data structures

[issue7697] os.getcwd() should raise UnicodeDecodeError for arbitrary bytes

2010-01-13 Thread Florent Xicluna
New submission from Florent Xicluna : When the current working directory is not decodable, the os.getcwd() function should raise an error. >>> sys.getfilesystemencoding() 'utf-8' >>> cwd=b'/tmp/\xe7' >>> os.mkdir(cwd); os.chdir(cwd) >>> o

[issue7697] os.getcwd() should raise UnicodeDecodeError for arbitrary bytes

2010-01-13 Thread Florent Xicluna
Florent Xicluna added the comment: Actually, it is the documented behaviour. http://docs.python.org/py3k/library/os.html#file-names-command-line-arguments-and-environment-variables >>> b'\xe7'.decode('utf-8', 'surrogateescape') '\udce7' --

<    7   8   9   10   11   12   13   14   >