[issue13442] Better support for pipe I/O encoding in subprocess

2011-11-20 Thread STINNER Victor
STINNER Victor added the comment: This issue looks as a duplicate of #6135. -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue13442> ___ ___ Pytho

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-20 Thread STINNER Victor
STINNER Victor added the comment: > Is Python supposed to support characters outside U+-U+10 range? If not, PyUnicode_FromUnicode(), PyUnicode_FromWideChar() and PyUnicode_FromKindAndData() should be patched to raise an error if a bigger character is encounte

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-20 Thread STINNER Victor
STINNER Victor added the comment: > strxfrm(buffer, "a\0", 100) returns 21 (bytes) but only 2 bytes > are written ("\x01\x00"). The next bytes are unchanged. Woops, it was a bug in my program. I attached the fixed version. The correct program writes: strxfrm:

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-20 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file23741/strxfrm.c ___ Python tracker <http://bugs.python.org/issue13441> ___ ___ Python-bugs-list mailin

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-21 Thread STINNER Victor
STINNER Victor added the comment: > No, they should be rejected. Allowing them in some specific > places might cause them to leak somewhere else and cause problems, > so I'd rather stick with that range and reject all the chars > >U+10 everywhere. That's why I

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-21 Thread STINNER Victor
STINNER Victor added the comment: I dumped some values to try to debug this issue. Last failure in test__locale.test_lc_numeric_basic() on localeconv(): [ 25/361] test_float Decode localeconv() decimal_point: {0x2c} (len=1) Decode localeconv() thousands_sep: {0x2e

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-21 Thread STINNER Victor
STINNER Victor added the comment: Here is a more complete output. localeconv() fails in the hu_HU locale for the "thousands_sep" field: localeconv() returns b'\xa0' which is decoded as the wchar_t* string: {U+3020} (len=1). This is

[issue12156] test_multiprocessing.test_notify_all() timeout (1 hour) on FreeBSD 7.2

2011-11-21 Thread STINNER Victor
STINNER Victor added the comment: I tried test_multi_sem-1.diff on "x86 FreeBSD 7.2 3.x" buildbot: the patch works as expected, the test suite is skipped. A minor nit: can you write the number of semaphore in the skip message? Except of this nit, the patch looks good to me (an

[issue10557] Malformed error message from float()

2011-11-21 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.3 -Python 3.1 ___ Python tracker <http://bugs.python.org/issue10557> ___ ___ Python-bugs-list mailing list Unsub

[issue13448] PEP 3155 implementation

2011-11-21 Thread STINNER Victor
STINNER Victor added the comment: I just have a comment: "XXX" should be replaced in "Python 3.3a0 3200 XXX". -- nosy: +haypo ___ Python tracker <http://bug

[issue8646] PyUnicode_EncodeDecimal is undocumented

2011-11-21 Thread STINNER Victor
STINNER Victor added the comment: I added tests for PyUnicode_EncodeDecimal() and PyUnicode_TransformDecimalToASCII() in Python 2.7, 3.2 and 3.3 (see also issue #13093). -- ___ Python tracker <http://bugs.python.org/issue8

[issue13093] Redundant code in PyUnicode_EncodeDecimal()

2011-11-21 Thread STINNER Victor
STINNER Victor added the comment: I fixed the issue in Python 2.7, 3.2 and 3.3. See also the changeset 849e9277906a (Python 3.3). -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue13452] PyUnicode_EncodeDecimal: reject error handlers different than strict

2011-11-22 Thread STINNER Victor
New submission from STINNER Victor : Error handling of PyUnicode_EncodeDecimal() is broken by design. The caller cannot know the size of the output buffer because each error handler produce a variable output, whereas the caller has to allocate this buffer and it is not possible to specify the

[issue13453] Tests and network timeouts

2011-11-22 Thread STINNER Victor
New submission from STINNER Victor : A lot of tests using the network are failing sometimes. They look like timeout or network failure. Example: == ERROR: test_storlines (test.test_ftplib.TestTLS_FTPClassMixin

[issue13454] crash when deleting one pair from tee()

2011-11-22 Thread STINNER Victor
STINNER Victor added the comment: tee() uses a linked-list of teedataobject. This list is destroyed by recursive calls to teedataobject_dealloc(). Extract of the gdb trace: #5 0x08171a8e in teedataobject_clear (tdo=0xad21b394) at ./Modules/itertoolsmodule.c:412 #6 0x08171b39 in

[issue13452] PyUnicode_EncodeDecimal: reject error handlers different than strict

2011-11-22 Thread STINNER Victor
STINNER Victor added the comment: > I'm only using the function with the NULL error handler. I don't think that anyone uses it without something else. The function is used to prepare a string input for a function converting a string to an integer. I don't see how xmlcha

[issue13453] Tests and network timeouts

2011-11-22 Thread STINNER Victor
STINNER Victor added the comment: test_urllib2net test test_urllib2net failed -- Traceback (most recent call last): File "/usr/home/buildbot/buildarea/2.7.krah-freebsd/build/Lib/test/test_urllib2net.py", line 195, in test_sites_no_connection_close req = urllib2.urlopen(URL)

[issue13453] Tests and network timeouts

2011-11-22 Thread STINNER Victor
STINNER Victor added the comment: http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%202.7/builds/405/steps/test/logs/stdio -- ___ Python tracker <http://bugs.python.org/issue13

[issue13453] Tests and network timeouts

2011-11-22 Thread STINNER Victor
STINNER Victor added the comment: http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.x/builds/2435/steps/test/logs/stdio Re-running test 'test_poplib' in verbose mode test_apop (test.test_poplib.TestPOP3Class) ... ok test_dele (test.test_poplib.TestPOP3Cla

[issue13453] Tests and network timeouts

2011-11-22 Thread STINNER Victor
STINNER Victor added the comment: http://www.python.org/dev/buildbot/all/builders/AMD64%20OpenIndiana%202.7/builds/732/steps/test/logs/stdio test test_telnetlib failed -- Traceback (most recent call last): File "/export/home/buildbot/64bits/2.7.cea-indiana-amd64/build/Lib

[issue13415] del os.environ[key] ignores errors

2011-11-22 Thread STINNER Victor
STINNER Victor added the comment: Oh, it looks like unsetenv() has no return value on Mac OS X Tiger: http://www.python.org/dev/buildbot/all/builders/PPC%20Tiger%202.7/builds/100/steps/compile/logs/stdio ./Modules/posixmodule.c: In function 'posix_unsetenv': ./Modules/posixmod

[issue13415] del os.environ

2011-11-23 Thread STINNER Victor
STINNER Victor added the comment: > Note that ignoring unsetenv() return value is a bad idea: > http://xorl.wordpress.com/category/freebsd/page/2/ Oh yeah, I remember this critical (local) vulnerability! > We could maybe add a configure-time check. Yes, it sounds like the best

[issue1395] py3k: duplicated line endings when using read(1)

2011-11-23 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue1395> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13448] PEP 3155 implementation

2011-11-23 Thread STINNER Victor
STINNER Victor added the comment: Ah, PyFunction_NewWithQualName is now public. Why an upper P in "PyFunction_NewWithQualName"? If you use an upper P, it should use an underscore in Python: __qual_name__ to be consistent. So I suggest to change the C name :-) PyFunction_NewWithQ

[issue13415] del os.environ[key] ignores errors

2011-11-23 Thread STINNER Victor
Changes by STINNER Victor : -- title: del os.environ -> del os.environ[key] ignores errors ___ Python tracker <http://bugs.python.org/issue13415> ___ ___ Py

[issue13415] del os.environ[key] ignores errors

2011-11-24 Thread STINNER Victor
STINNER Victor added the comment: Using broken_unsetenv.diff + autoconf, Python compiles correctly on Mac OS X Tiger. -- ___ Python tracker <http://bugs.python.org/issue13

[issue13471] setting access time beyond Jan. 2038 on remote share failes on Win7 x64

2011-11-24 Thread STINNER Victor
STINNER Victor added the comment: The timestamp is converted to time_t (32 bits) and then to FILE_TIME (64 bits). A function to convert directly a PyObject to FILE_TIME should be written. -- nosy: +haypo ___ Python tracker <http://bugs.python.

[issue11886] test_time.test_tzset() fails on "x86 FreeBSD 7.2 3.x": AEST timezone called "EST"

2011-11-24 Thread STINNER Victor
STINNER Victor added the comment: Issue #13313 has been marked as a duplicate of this issue. Interesting message from flox: "Maybe it is related. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810 Ambiguous timezone names (AEST vs EST)" -- n

[issue13313] test_time fails: tzset() do not change timezone

2011-11-24 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of #11886. -- nosy: +haypo resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue11886] test_time.test_tzset() fails on "x86 FreeBSD 7.2 3.x": AEST timezone called "EST"

2011-11-24 Thread STINNER Victor
STINNER Victor added the comment: > Is there a way to force configure run on the bot? ./configure is run for each build of each buildbot. -- ___ Python tracker <http://bugs.python.org/issu

[issue11886] test_time.test_tzset() fails on "x86 FreeBSD 7.2 3.x": AEST timezone called "EST"

2011-11-24 Thread STINNER Victor
STINNER Victor added the comment: I don't see this issue as a bug in Python, but just that the timezone database is different on some OSes. Can't we just accept both names, AEST and EST? Attached patch changes test_time to tolerate EST name for 'AEST-10AEDT-11,M10.5.0,M3.

[issue9458] xml.etree.ElementTree.ElementTree.write(): encoding handling problems

2011-11-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue9458> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13432] Encoding alias "unicode"

2011-11-25 Thread STINNER Victor
STINNER Victor added the comment: > Python is not a language written for the web, it's generic language to program anything! If you have a problem to parse an HTML page, the special case should be added to the HTML parser, not to the language. Do you have the encoding issue with

[issue13093] Redundant code in PyUnicode_EncodeDecimal()

2011-11-25 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg148348 ___ Python tracker <http://bugs.python.org/issue13093> ___ ___ Python-bugs-list m

[issue13452] PyUnicode_EncodeDecimal: reject error handlers different than strict

2011-11-25 Thread STINNER Victor
STINNER Victor added the comment: Hum, I only changed PyUnicode_EncodeDecimal in Python 3.3, I prefer to not touch stable releases (2.7, 3.2). New changeset a20fae95618c by Victor Stinner in branch 'default': Close #13093: PyUnicode_EncodeDecimal() doesn't support erro

[issue13432] Encoding alias "unicode"

2011-11-25 Thread STINNER Victor
STINNER Victor added the comment: > For example, when Microsoft talks about Unicode they mean UTF-16. Sorry, but UTF-16 is ambiguously: do you mean UTF-16-LE or UTF-16-BE? ;-) -- ___ Python tracker <http://bugs.python.org/issu

[issue13402] Document absoluteness of sys.executable

2011-11-25 Thread STINNER Victor
STINNER Victor added the comment: > You could also add a test to test_sys ensuring that sys.executable > is always executable. And that sys.executable is absolute? sys.executable is an empty string if sys.argv[0] has been changed and Python is unable to retrieve the real path to the

[issue13415] del os.environ[key] ignores errors

2011-11-26 Thread STINNER Victor
STINNER Victor added the comment: Oh, thanks Charles François for your two patches. -- ___ Python tracker <http://bugs.python.org/issue13415> ___ ___ Python-bug

[issue6715] xz compressor support

2011-11-26 Thread STINNER Victor
STINNER Victor added the comment: The last patch (9276fc685c05.diff) looks good to me. Go ahead for the commit! -- ___ Python tracker <http://bugs.python.org/issue6

[issue13415] del os.environ[key] ignores errors

2011-11-26 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg148428 ___ Python tracker <http://bugs.python.org/issue13415> ___ ___ Python-bugs-list m

[issue12567] curses implementation of Unicode is wrong in Python 3

2011-11-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 919259054621 by Victor Stinner in branch 'default': Issue #13415: Help to locate curses.h when _curses module is linked to ncursesw http://hg.python.org/cpython/rev/919259054621 (Oops, wrong issue num

[issue12567] curses implementation of Unicode is wrong in Python 3

2011-11-26 Thread STINNER Victor
STINNER Victor added the comment: > This broke several Gentoo buildbots. setup.py is unable to locate correctly curses.h. I added a hack to always search in /usr/include/ncursesw/. The hack is needed on Ubuntu 11.10 if you only have libncursesw5-dev but not libncursesw-dev for exam

[issue12567] curses implementation of Unicode is wrong in Python 3

2011-11-27 Thread STINNER Victor
STINNER Victor added the comment: Compile output on OpenSolaris: Consider setting $PYTHONHOME to [:] ld: fatal: file /usr/local/lib/libncursesw.so: wrong ELF class: ELFCLASS32 ld: fatal: file processing errors. No output written to build/lib.solaris-2.11-i86pc-3.3-pydebug/readline.so collect2

[issue13415] del os.environ[key] ignores errors

2011-11-27 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg148467 ___ Python tracker <http://bugs.python.org/issue13415> ___ ___ Python-bugs-list m

[issue12567] curses implementation of Unicode is wrong in Python 3

2011-11-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset bf51e32b2a81 by Victor Stinner in branch 'default': Issue #13415: test_curses skips unencodable characters http://hg.python.org/cpython/rev/bf51e32b2a81 (Oops, I copy-pasted the issue number from my previous commit, and the issue

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2011-11-28 Thread STINNER Victor
STINNER Victor added the comment: > Is subprocess affected by PYTHONIOENCODING? Yes, as any Python process. -- ___ Python tracker <http://bugs.python.org/iss

[issue12119] distutils and python -B

2011-11-28 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker <http://bugs.python.org/issue12119> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13093] Redundant code in PyUnicode_EncodeDecimal()

2011-11-28 Thread STINNER Victor
STINNER Victor added the comment: > A 2.7 OS X buildbot segfaults in test_unicode since 0cd197f13400 > http://www.python.org/dev/buildbot/all/builders/AMD64 Snow Leopard 2 > 2.7/builds/409/steps/test/logs/stdio Hum, I'm unable to reproduce the crash on Linux or

[issue13481] Use an accurate clock in timeit

2011-11-28 Thread STINNER Victor
STINNER Victor added the comment: Are CLOCK_MONOTONIC_RAW, CLOCK_MONOTONIC and CLOCK_REALTIME more accurate than gettimeofday (time.time)? -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue13

[issue3786] _curses, _curses_panel & _multiprocessing can't be build in 2.6b3 w/ SunStudio 12

2011-11-28 Thread STINNER Victor
STINNER Victor added the comment: EKIT.patch is not correct: it fails to find mvwchgat() on Linux, whereas the function is present. The test program is not linked to curses nor ncurses. << Solaris has both traditional System V curses and an XPG4-compatible curses that does include mv

[issue3786] _curses, _curses_panel & _multiprocessing can't be build in 2.6b3 w/ SunStudio 12

2011-11-28 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue3786> ___ ___ Python-bugs-list mailing list Unsub

[issue10278] add time.wallclock() method

2011-11-28 Thread STINNER Victor
STINNER Victor added the comment: wallclock-2.patch: implement wallclock() using the new clock_getime(CLOCK_MONOTONIC) function (or other, depending on the OS). I removed description on how the function is implemented from the doc. -- Added file: http://bugs.python.org/file23799

[issue12822] NewGIL should use CLOCK_MONOTONIC if possible.

2011-11-28 Thread STINNER Victor
STINNER Victor added the comment: > The patch is ok on the principle, but we do need a check > that CLOCK_MONOTONIC is supported at build time. timemodule.c is now using "#ifdef CLOCK_MONOTONIC". -- ___ Python tracker <htt

[issue13093] Redundant code in PyUnicode_EncodeDecimal()

2011-11-28 Thread STINNER Victor
STINNER Victor added the comment: > Looks like length is incorrect. Oh ok, _testcapimodule.c is "sssize_t" safe in Python 3, not in Python 2. Can you please try with the last tip? -- ___ Python tracker <http://bugs.pytho

[issue12822] NewGIL should use CLOCK_MONOTONIC if possible.

2011-11-28 Thread STINNER Victor
STINNER Victor added the comment: pthread_condattr_setclock() result should be checked. "The pthread_condattr_setclock() function may fail if: EINVAL The value specified by clock_id does not refer to a known clock, or is a CPU-time

[issue6753] Python 3.1.1 test_cmd_line fails on Fedora 11

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: A lot of bugs related to encodings has been fixed. The bug was seen on Python 3.1, whereas the current development version is 3.3. We have a Fedora buildbot and many Fedora users, none reported such error recently. I consider this issue as fixed

[issue11427] ctypes from_buffer no longer accepts bytes

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: .from_buffer() expects a modifiable buffer, bytes type is immutable. If .from_buffer() accepted an immutable buffer, it was a bug and the bug was fixed. If you want to use bytes, use .from_buffer_copy() instead of .from_buffer(). -- resolution

[issue11427] ctypes from_buffer no longer accepts bytes

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: > I just want to call my C function. You can use something else than ctypes_array.from_buffer(buffer). ctypes_array.from_buffer() creates a read-write object which can be used to modify the buffer. You cannot pass a read-only object

[issue13471] setting access time beyond Jan. 2038 on remote share failes on Win7 x64

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: > I thought that time_t was 64 bits on Windows On Windows 64 bits, sizeof(time_t) is 64 bits and time.ctime(910692730085) works (return a string with year 2128). It looks like Thorsten Simons is running Windows 32 b

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2011-11-29 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue13501> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5654] Add C hook in PyDict_SetItem for debuggers

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: > the cost in the normal case is a single pointer comparison with NULL, > something very cheap. The Linux kernel patchs dynamically the code: disabling a probe writes NOP instruction in memory to avoid the cost of the test. Probes are completly disab

[issue10278] add time.wallclock() method

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: Version 3 of the patch: check for clock_gettime() failure. Try CLOCK_MONOTONIC_RAW, or try CLOCK_MONOTONIC, or use time.time(). -- Added file: http://bugs.python.org/file23809/wallclock-3.patch ___ Python tracker

[issue13471] setting access time beyond Jan. 2038 on remote share failes on Win7 x64

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: > time_t *is* 64bit by default since Visual Studio 8 Ah? The issue was reported on a version compiled with Visual Studio 8. Notice "MSC v.1500" in: > Using Python '3.2.2 (default, Sep 4 2011, 09:07:29) > [MSC v.1500 64 bi

[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: Python 3.3 has a strange behaviour: >>> '\uDBFF\uDFFF'.encode('utf-16-le').decode('utf-16-le') '\U0010' >>> '\U0010'.encode('utf-16-le').decode('utf-16-le') &

[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: Patch rejecting surrogates in UTF-16 and UTF-32 encoders. I don't think that Python 2.7 and 3.2 should be changed in a minor version. -- dependencies: -Refactor code using unicode_encode_call_errorhandler() in unicodeobject.c keywords: +patch

[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates

2011-11-29 Thread STINNER Victor
STINNER Victor added the comment: Hum, my patch doesn't call the error handler. -- ___ Python tracker <http://bugs.python.org/issue12892> ___ ___ Pytho

[issue13097] ctypes: segfault with large number of callback arguments

2011-11-30 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue13097> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2011-11-30 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue9116> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7652] Merge C version of decimal into py3k.

2011-11-30 Thread STINNER Victor
STINNER Victor added the comment: > Just to clarify, no decision has yet been made on *whether* > the cdecimal work should be integrated into py3k; > we'll consult python-dev on this once we've got a working branch > and performance information. So, what is the status tod

[issue7652] Merge C version of decimal into py3k.

2011-11-30 Thread STINNER Victor
STINNER Victor added the comment: > (Actually, that's a part of why decimal.py is slow---it's > using Python's *binary* integers to store *decimal* coefficients, > so that even simple addition is now a quadratic operation, > thanks to the binary <-> decimal con

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on "x86 Ubuntu Shared 3.x"

2011-11-30 Thread STINNER Victor
STINNER Victor added the comment: > Gregory's patches to sanitize threading's lock should have fixed this The subprocess hang still occurs something, it just happened: http://www.python.org/dev/buildbot/all/builders/x86%20Ubuntu%20Shared%203.x/builds/4898/steps/test/logs/st

[issue13097] ctypes: segfault with large number of callback arguments

2011-12-01 Thread STINNER Victor
STINNER Victor added the comment: Is there really an use case where you need 2 ** 20 (1,048,576) arguments? If yes, I'm not against the torture in this case :-) If no, why not raising an error if there are too many arguments? E.g. limit to 1,024 arguments or maybe ju

[issue13390] Hunt memory allocations in addition to reference leaks

2011-12-01 Thread STINNER Victor
STINNER Victor added the comment: The overhead on PyObject_Malloc() is just an increment on an integer, so it is very low (or null). The feature is interesting, but I'm not convinced that a very simple counter is enough to track memory leaks. It may help the CPython test suite, but

[issue13520] Patch to make pickle aware of __qualname__

2011-12-02 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue13520> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13526] Deprecate the old Unicode API

2011-12-03 Thread STINNER Victor
New submission from STINNER Victor : Attached patch modifies the following function to emit a DeprecationWarning: * PyUnicode_GET_SIZE() (and so PyUnicode_GET_DATA_SIZE()) * PyUnicode_AS_UNICODE() * PyUnicode_AsUnicodeAndSize() (and so PyUnicode_AsUnicode()) * PyUnicode_FromUnicode

[issue11886] test_time.test_tzset() fails on "x86 FreeBSD 7.2 3.x": AEST timezone called "EST"

2011-12-05 Thread STINNER Victor
STINNER Victor added the comment: Alex ? Florent ? -- ___ Python tracker <http://bugs.python.org/issue11886> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13535] Improved two's complement arithmetic support: to_signed() and to_unsigned()

2011-12-06 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue13535> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13545] Pydoc3.2: TypeError: unorderable types

2011-12-07 Thread STINNER Victor
STINNER Victor added the comment: Can you try to patch platform.py with the following patch? diff --git a/Lib/platform.py b/Lib/platform.py --- a/Lib/platform.py +++ b/Lib/platform.py @@ -186,7 +186,7 @@ def libc_ver(executable=sys.executable,l elif so: if lib != '

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on "x86 Ubuntu Shared 3.x"

2011-12-07 Thread STINNER Victor
STINNER Victor added the comment: I got the debug output of test_3_join_in_forked_from_thread() using some hacks (threading._VERBOSE=True and don't hide subprocess output): Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_s

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on "x86 Ubuntu Shared 3.x"

2011-12-07 Thread STINNER Victor
STINNER Victor added the comment: Hum, it's better with the process identifiers. Oh, by the way: the output is not truncated, Python test hangs during the second run :-) Without the debug output, it needs more than 1,000 runs to reproduce the bug (hang). Testing with flags: sys.flags(

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on "x86 Ubuntu Shared 3.x"

2011-12-07 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg148991 ___ Python tracker <http://bugs.python.org/issue11870> ___ ___ Python-bugs-list m

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on "x86 Ubuntu Shared 3.x"

2011-12-07 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg148992 ___ Python tracker <http://bugs.python.org/issue11870> ___ ___ Python-bugs-list m

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on "x86 Ubuntu Shared 3.x"

2011-12-07 Thread STINNER Victor
STINNER Victor added the comment: I removed my two previous message (msg148991 and msg148992), there were unrelated to this issue: the test hangs in debug mode in the IO module because of a deadleak in IO related to the fork... -- ___ Python

[issue11051] system calls per import

2011-12-07 Thread STINNER Victor
STINNER Victor added the comment: By the way, _Py_stat() can fail because of a Python error: -1 result is not handled in import.c :-( It may leak to the "XXX undetected error" message. -- nosy: +haypo ___ Python tracker <http://bu

[issue13550] Rewrite logging hack of the threading module

2011-12-07 Thread STINNER Victor
New submission from STINNER Victor : The threading module uses an hack to log actions to help debugging. The log depends on 3 flags: __debug__, threading._VERBOSE and a verbose attribute (each threading class has such attribute). By default, _note() is always called but does nothing: it

[issue13550] Rewrite logging hack of the threading module

2011-12-07 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file23870/threading_note_global.patch ___ Python tracker <http://bugs.python.org/issue13550> ___ ___ Pytho

[issue13550] Rewrite logging hack of the threading module

2011-12-07 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file23870/threading_note_global.patch ___ Python tracker <http://bugs.python.org/issue13550> ___ ___ Pytho

[issue13550] Rewrite logging hack of the threading module

2011-12-07 Thread STINNER Victor
STINNER Victor added the comment: (threading_note_global.patch was completly wrong, here is the fixed version) -- Added file: http://bugs.python.org/file23871/threading_note_global.patch ___ Python tracker <http://bugs.python.org/issue13

[issue3786] _curses, _curses_panel & _multiprocessing can't be build in 2.6b3 w/ SunStudio 12

2011-12-07 Thread STINNER Victor
STINNER Victor added the comment: I hacked setup.py and _cursesmodule.c to use XPG4 curses. It requires many hacks because it lacks functions like getattrs() or getsyx/setsyx, constant like KEY_MIN and KEY_MAX. It looks difficult to use this curses library

[issue13552] Compilation issues of the curses module on OpenIndiana

2011-12-07 Thread STINNER Victor
New submission from STINNER Victor : The _curses module has two issues on OpenSolaris: - using the default curses library, mvwchgat() cannot be found and _curses module compilation fails - there is a "XPG4 curses" library. I tried to use it using various hacks in _cursesmo

[issue12567] curses implementation of Unicode is wrong in Python 3

2011-12-07 Thread STINNER Victor
STINNER Victor added the comment: > I am still concerned about the compilation warning in OpenIndiana buildbots > :-( I'm unable to reproduce the issue in my OpenIndiana VM: the compilaton of the _curses module fail, not because of Unicode, but because mvwchgat() function is mis

[issue3786] _curses, _curses_panel & _multiprocessing can't be build in 2.6b3 w/ SunStudio 12

2011-12-07 Thread STINNER Victor
STINNER Victor added the comment: I opened the issue #13552 to list all curses issues on OpenIndiana. -- ___ Python tracker <http://bugs.python.org/issue3

[issue13552] Compilation issues of the curses module on OpenIndiana

2011-12-07 Thread STINNER Victor
STINNER Victor added the comment: curses_hacks.patch: various hacks to use the XPG4 curses on OpenIndiana. -- keywords: +patch nosy: +enchanter Added file: http://bugs.python.org/file23873/curses_hacks.patch ___ Python tracker <h

[issue12567] curses implementation of Unicode is wrong in Python 3

2011-12-07 Thread STINNER Victor
STINNER Victor added the comment: The code has been commited. The remaining task is to fix OpenIndiana issues: see #13552. -- ___ Python tracker <http://bugs.python.org/issue12

[issue12567] curses implementation of Unicode is wrong in Python 3

2011-12-07 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue12567> ___ ___ Python-bugs-list

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-12-07 Thread STINNER Victor
STINNER Victor added the comment: localeconv_wchar.c: test program to dump the thousands separator on a locale specified on the command line. I wrote this program to try to reproduce the hu_HU issue, but I cannot reproduce it on OpenIndiana. I only have UTF-8 locales on my OpenIndiana VM

[issue5689] Support xz compression in tarfile module

2011-12-08 Thread STINNER Victor
STINNER Victor added the comment: Some comments about 2011-12-08-tarfile-lzma.diff: > elif self.buf.startswith(b"\x5d\x00\x00\x80") or self.buf.startswith(b"... Micro-optimization: you can use self.buf.startswith((b"\x5d\x00\x00\x80", b"\xfd7zXZ")) here

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-12-08 Thread STINNER Victor
STINNER Victor added the comment: See also the issue #7442. -- ___ Python tracker <http://bugs.python.org/issue13441> ___ ___ Python-bugs-list mailing list Unsub

[issue5905] strptime fails in non-UTF locale

2011-12-08 Thread STINNER Victor
STINNER Victor added the comment: Oh! I think that I understood the problem: if HAVE_WCSFTIME is not defined, timemodule.c uses strftime(), instead of wcsftime(), encode input format and decode the format. It uses UTF-8 to encode/decode, whereas the right encoding is the locale encoding

[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-12-08 Thread STINNER Victor
STINNER Victor added the comment: Changeset 489ea02ed351 changed PyUnicode_FromWideChar() and PyUnicode_FromUnicode(): raise a ValueError if a character in not in range [U+; U+10]. test__locale errors: == ERROR

<    7   8   9   10   11   12   13   14   15   16   >