[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-46887: ./Programs/_freeze_module fails with MSAN: Uninitialized value was created by an allocation of 'stat.i'. -- ___ Python tracker <https://bugs.python.o

[issue46857] Python leaks one reference at exit on Windows

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: The initial issue "Python leaks one reference at exit on Windows" is now fixed. If someone wants to investigate the remaining leak of 1 memory block or the negative ref count of PYTHONDUMPREFS=1, please open a separated issue. --

[issue46852] Remove the float.__set_format__() method

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: I created a follow-up issue: bpo-46917 "Require IEEE 754 floating point to build Python 3.11". I close this one: float.__set_format__() has been removed. -- resolution: -> fixed status: open -> closed title: Remove the float.__setf

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6d0d7d2b8c1e04fd51c6cb29cc09a41b60b97b7b by Victor Stinner in branch 'main': bpo-46913: test_hashlib skips _sha3 tests on UBSan (GH-31673) https://github.com/python/cpython/commit/6d0d7d2b8c1e04fd51c6cb29cc09a4

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset ad1b04451d3aca2c6fa6dbe2891676a4e0baac49 by Victor Stinner in branch 'main': bpo-46913: Skip test_ctypes.test_shorts() on UBSan (GH-31674) https://github.com/python/cpython/commit/ad1b04451d3aca2c6fa6dbe2891676

[issue46355] [C API] Document PyFrameObject and PyThreadState changes and explain how to port code to Python 3.11

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset ec4a580f7cada002441ae5611b909d56e3b5b613 by Victor Stinner in branch 'main': bpo-46355: Update pythoncapi_compat project URL (GH-31670) https://github.com/python/cpython/commit/ec4a580f7cada002441ae5611b909d

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29795 pull_request: https://github.com/python/cpython/pull/31675 ___ Python tracker <https://bugs.python.org/issue46

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: I pushed changes just to turn back the buildbot back to green, but undefined behaviors in test_ctypes.test_shorts() and _sha3 (tested by test_hashlib) must be fixed. Previously, test_ctypes, test_hashlib and test_faulthandler were fully skipped on UBSan

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7b5b429adab4fe0fe81858fe3831f06adc2e2141 by Victor Stinner in branch '3.10': [3.10] bpo-46913: Fix test_ctypes, test_hashlib, test_faulthandler on UBSan (GH-31675) https://github.com/python/cpyt

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29796 pull_request: https://github.com/python/cpython/pull/31676 ___ Python tracker <https://bugs.python.org/issue46

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6a14330318c9c7aedf3e9841c3dfea337064d8e6 by Victor Stinner in branch '3.9': bpo-46913: Fix test_ctypes, test_hashlib, test_faulthandler on UBSan (GH-31675) (GH-31676) https://github.com/python/cpyt

[issue46913] UBSAN: test_ctypes, test_faulthandler and test_hashlib are failing

2022-03-04 Thread STINNER Victor
STINNER Victor added the comment: > I don't agree with GH-31673. Did you try defining NO_MISALIGNED_ACCESSES > instead? Did you read the commit message? The change is not about skipping the test, but fixing the CI. Previously, test_hashlib was not run at all on the UBSan buildbo

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2022-03-04 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker <https://bugs.python.org/issue29406> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39355] The Python library will not compile with a C++2020 compiler because the code uses the reserved “module” keyword

2022-03-07 Thread STINNER Victor
STINNER Victor added the comment: > The Python library will not compile with a C++2020 compiler because the code > uses the reserved “module” keyword What is the error message? How can the error be reproduced? -- ___ Python tracker

[issue12936] armv5tejl: random segfaults in getaddrinfo()

2011-09-11 Thread STINNER Victor
STINNER Victor added the comment: > Looks like a libc bug ... > http://sources.redhat.com/bugzilla/show_bug.cgi?id=12453 Yes, the GNU libc has bugs (as every software!): this one has been fixed only recently (in glibc 2.14, released the 2011-05-31). I don't know if this issue is

[issue11457] Expose nanosecond precision from system calls

2011-09-11 Thread STINNER Victor
STINNER Victor added the comment: > If a two-ints representation > is considered necessary, I'd favor a rational number (numerator, > denominator) over a pair (second, subsecond); this would also support > 2**-32 fractions (as used in NTP !!!). Which OS uses NTP timestamps

[issue12963] PyLong_AsSize_t returns (unsigned long)-1

2011-09-12 Thread STINNER Victor
STINNER Victor added the comment: I suppose that you can test if the bug is tested on Windows 64 bits, where sizeof(long)=32 bits, whereas sizeof(size_t) is 64 bits. -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue12

[issue12964] Two improvements for the locale aliasing engine

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

[issue12936] armv5tejl: random segfaults in getaddrinfo()

2011-09-13 Thread STINNER Victor
STINNER Victor added the comment: > The failure was introduced by issue #12655 Wow, great job! crash.py looks like a libc and/or kernel bug. Can you try the glibc 2.14 (released the 2011-05-31)? You should first check if it is not a duplicate of http://sources.redhat.com/bugzi

[issue12970] os.wlak() consider some symlinks as dirs instead of non-dirs

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

[issue12936] armv5tejl segfaults: sched_setaffinity() vs. pthread_setaffinity_np()

2011-09-13 Thread STINNER Victor
STINNER Victor added the comment: > However, I don't think we should/could add this to the posix module: > it expects a pthread_t instead of a PID, to which we don't have access. We already have such function: http://docs.python.org/dev/library/signal.html#signal.pthre

[issue12936] armv5tejl segfaults: sched_setaffinity() vs. pthread_setaffinity_np()

2011-09-13 Thread STINNER Victor
STINNER Victor added the comment: > as noted by Victor, it's really easy to crash the interpreter > by passing an invalid thread ID, which IMHO, should be avoided > at all cost Do you mean that signal.pthread_kill() should be removed? This function is very useful and solve so

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-09-13 Thread STINNER Victor
STINNER Victor added the comment: "Recent clang and Python2.7 (without the patch): >>> 2**64 0" Does the test suite catch this bug? -- ___ Python tracker <http://bugs

[issue12946] PyModule_GetDict() claims it can never fail, but it can

2011-09-13 Thread STINNER Victor
STINNER Victor added the comment: So, can we close this issue? -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue12946> ___ ___ Python-bugs-list m

[issue8828] Atomic function to rename a file

2011-09-13 Thread STINNER Victor
STINNER Victor added the comment: According to the following article, a fsync is also needed on the directory after a rename. I don't understand if is it always needed for an atomic rename, or if we only need it for the "atomic write" pattern. http://lwn.net/Articles/457

[issue12960] threading.Condition is not a class

2011-09-13 Thread STINNER Victor
STINNER Victor added the comment: > According to http://docs.python.org/library/threading.html#condition-objects, > threading.Condition is a class. Nope, it's a factory, and it's written in the doc: "threading.Condition() A factory function that returns a new conditi

[issue10968] threading.Timer should be a class so that it can be derived

2011-09-13 Thread STINNER Victor
STINNER Victor added the comment: @eric: The doc has to be updated: http://docs.python.org/dev/library/threading.html#threading.activeCount "threading.Condition() A factory function that returns a new condition variable object. A condition variable allows one or more threads to wait

[issue12960] threading.Condition is not a class

2011-09-14 Thread STINNER Victor
STINNER Victor added the comment: > Yes, but further down it still says: > > """ > class threading.Condition([lock]) > > If the lock argument is given and not None, [] > """ What do yo

[issue12973] int_pow() implementation is incorrect

2011-09-14 Thread STINNER Victor
STINNER Victor added the comment: I removed -fwrapv from configure and Makefile, but I'm unable to reproduce the issue with clang 2.8 on x86_64 (Fedora 15). -- nosy: +haypo ___ Python tracker <http://bugs.python.org/is

[issue12973] int_pow() implementation is incorrect

2011-09-14 Thread STINNER Victor
STINNER Victor added the comment: > Thanks Victor; I just managed to install Clang, > and it looks I can reproduce the failures. What is your clang version? I ran ./python -m test -v test_long to check the issue. -- ___ Python tracker

[issue12973] int_pow() implementation is incorrect

2011-09-14 Thread STINNER Victor
STINNER Victor added the comment: Aaaah, int_pow. I was testing Python 3.3. I tested Python 2.7 with clang 2.8, optimization level at -03 and without -fwrapv... I'm still unable to reproduce the issue. It's maybe an optimization introduced by clang 2.9. -- This issue remembers me

[issue12980] segfault in test_json on AMD64 FreeBSD 8.2 2.7

2011-09-14 Thread STINNER Victor
New submission from STINNER Victor : http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%202.7/builds/301 - [ 44/359] test_json Fatal Python error: Segmentation fault Current thread 0x0008010041c0: File "/usr/home/bui

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-09-14 Thread STINNER Victor
STINNER Victor added the comment: The new issue #12980 may be a regression introduced by this issue. -- ___ Python tracker <http://bugs.python.org/issue11

[issue12976] select module: only use EVFILT_TIMER if available (kqueue backend)

2011-09-14 Thread STINNER Victor
Changes by STINNER Victor : ___ Python tracker <http://bugs.python.org/issue12976> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/o

[issue12982] .pyo file cannot be imported

2011-09-14 Thread STINNER Victor
STINNER Victor added the comment: You need to run Python with -O command line option to ask Python to search for *.pyo files. -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue12

[issue12678] test_packaging and test_distutils failures under Windows

2011-09-14 Thread STINNER Victor
STINNER Victor added the comment: test_packaging is still failing on Windows, example: == ERROR: test_uses (packaging.tests.test_database.TestDistribution

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-14 Thread STINNER Victor
STINNER Victor added the comment: I don't think that it's a problem to remove private functions. Is it mandatory to send a non-empty message (first argument for sendmsg, b'x' in your patch)? The original C function sends a random byte :-) multiprocessing_recvfd()

[issue12980] segfault in test_json on AMD64 FreeBSD 8.2 2.7

2011-09-14 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue12980> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12980] segfault in test_json on AMD64 FreeBSD 8.2 2.7

2011-09-14 Thread STINNER Victor
STINNER Victor added the comment: I ran test_json (and then the full test suite using make buildbottest) on FreeBSD 8.2, with Python compiled by clang 2.8, and I'm unable to reproduce the bug. @skrah: Feel free to close the issue if we cannot reproduce it outside your bui

[issue1172711] long long support for array module

2011-09-14 Thread STINNER Victor
STINNER Victor added the comment: @meadori: please write the version of your patch directly in the filename. For example, I use the pattern: name.patch, name-2.patch, name-3.patch, ... -- ___ Python tracker <http://bugs.python.org/issue1172

[issue12982] .pyo file cannot be imported

2011-09-15 Thread STINNER Victor
STINNER Victor added the comment: > Indeed. Thanks. I wish it had been in the documentation. :) This is yet > another reason for me to check how I can submit patches to the doc. :) Read http://docs.python.org/devguide/ to learn how to get the source of the documentation and how to w

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-15 Thread STINNER Victor
STINNER Victor added the comment: > - if the ancillay data is truncated, struct.unpack will raise an exception Well, the current C code doesn't check that the data is truncated and it works correctly, so I don't think that it would be different in Python. And yes, Python adds a

[issue10968] threading.Timer should be a class so that it can be derived

2011-09-15 Thread STINNER Victor
STINNER Victor added the comment: > that’s why I posted a patch six weeks ago and asked for a review Oh ok, cool, I missed the patches. -- ___ Python tracker <http://bugs.python.org/issu

[issue12986] Using getrandbits() in uuid.uuid4() is faster and more readable

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

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-15 Thread STINNER Victor
STINNER Victor added the comment: The patch looks correct. Did you try it on Linux, FreeBSD and/or Windows? -- ___ Python tracker <http://bugs.python.org/issue12

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-15 Thread STINNER Victor
STINNER Victor added the comment: - Click on "Server-side clone" on http://hg.python.org/cpython - on your computer, hg clone default myclone # default if your local clone of cpython, default branch - cd myclone; edit code; hg ci - edit .hg/hgrc to update the repository URL

[issue12960] threading.Condition is not a class

2011-09-18 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> wont fix status: open -> closed ___ Python tracker <http://bugs.python.org/issue12960> ___ ___ Python-bugs-

[issue12999] _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED usage on Solaris

2011-09-18 Thread STINNER Victor
STINNER Victor added the comment: Martin dropped _XOPEN_SOURCE in issue #1759169 (commit 7c947768b435). -- FYI I changed configure(.in) to get _XOPEN_SOURCE to 700 on OpenBSD 5 to get recent C functions like fdopendir(): # X/Open 7, incorporating POSIX.1-2008 AC_DEFINE(_XOPEN_SOURCE

[issue12996] multiprocessing.Connection endianness issue

2011-09-18 Thread STINNER Victor
STINNER Victor added the comment: "Since the rewrite in pure Python of multiprocessing.Connection (issue #11743), multiprocessing.Connection sends and receives the length of the data (used as header) in host byte order." I don't think so, the C code uses also the host endian.

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-18 Thread STINNER Victor
STINNER Victor added the comment: "It works fine on Linux, FreeBSD, OS X and Windows, but not on Solaris: see issue #12999." Oh, thank for testing before committing :) It's hard to debug multiprocessing. -- ___ Python

[issue13001] test_socket.testRecvmsgTrunc failure on FreeBSD 7.2 buildbot

2011-09-18 Thread STINNER Victor
STINNER Victor added the comment: @requires_freebsd_version should be factorized with @requires_linux_version. Can we workaround FreeBSD (< 8) bug in C/Python? Or should we remove the function on FreeBSD < 8? -- ___ Python tracker

[issue13021] Resource is not released before returning from the functiion

2011-09-20 Thread STINNER Victor
STINNER Victor added the comment: It's not me, it's Barry! (PEP 3147: 7b69e630d237) -- nosy: +barry ___ Python tracker <http://bugs.python.o

[issue13022] _multiprocessing.recvfd() doesn't check that file descriptor was actually received

2011-09-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +neologix ___ Python tracker <http://bugs.python.org/issue13022> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13024] cgitb uses stdout encoding

2011-09-20 Thread STINNER Victor
New submission from STINNER Victor : cgitb module writes its output to sys.stdout by default and so encode its HTML document into stdout encoding, whereas it doesn't specify the HTML encoding. Moreover it uses stdout error handler. If the locale encoding is ASCII whereas a filename i

[issue13025] mimetypes should read the rule file using UTF-8, not the locale encoding

2011-09-20 Thread STINNER Victor
New submission from STINNER Victor : On Debian and Ubuntu, /etc/mime.types file is pure ASCII, but on Fedora 15 it contains a non-ASCII character, ³ (U+00B3), in the line: "application/vnd.geocube+xml g3 g³" And the file is encoded in UTF-8. That's why Pyt

[issue13025] mimetypes should read the rule file using UTF-8, not the locale encoding

2011-09-20 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Library (Lib), Unicode ___ Python tracker <http://bugs.python.org/issue13025> ___ ___ Python-bugs-list mailin

[issue13024] cgitb uses stdout encoding

2011-09-20 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Unicode nosy: +georg.brandl ___ Python tracker <http://bugs.python.org/issue13024> ___ ___ Python-bugs-list mailin

[issue1172711] long long support for array module

2011-09-21 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 672b63aff0f4 by Meador Inge in branch 'default' Woops, I wrote the wrong module name. Thanks for fixing it. -- ___ Python tracker <http://bugs.python.

[issue13028] python wastes linux users time by checking for dylib on each dynamic library load

2011-09-22 Thread STINNER Victor
STINNER Victor added the comment: The list of file extensions is written in _PyImport_DynLoadFiletab constant. This list depends on the OS. For Linux, the list is defined in: Python/dynload_shlib.c. I don't understand because in Python 2.7, Python/dynload_shlib.c doesn't conta

[issue13029] test_strptime fails on Windows 7 french

2011-09-22 Thread STINNER Victor
New submission from STINNER Victor : Python 3 uses wcsftime() to format a timestamp and decodes tzname[0] and tzname[1] from UTF-8. The problem is that both methods format the quote differently: U+0092 for wcsftime("%Z") and U+2019 in tzname[1]. >>> time.strftime("%Z

[issue13029] test_strptime fails on Windows 7 french

2011-09-22 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +belopolsky ___ Python tracker <http://bugs.python.org/issue13029> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13029] test_strptime fails on Windows 7 french

2011-09-22 Thread STINNER Victor
STINNER Victor added the comment: See also issue #10653. -- ___ Python tracker <http://bugs.python.org/issue13029> ___ ___ Python-bugs-list mailing list Unsub

[issue10653] test_time test_strptime fails on windows

2011-09-22 Thread STINNER Victor
STINNER Victor added the comment: See also issue #13029. -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue10653> ___ ___ Python-bugs-list mailin

[issue10254] unicodedata.normalize('NFC', s) regression

2011-09-22 Thread STINNER Victor
STINNER Victor added the comment: "This new data does not crash Python 2.7.2, so I assume the issue has been fixed." Yes, the bug was already fixed in branch 2.7 by the SVN commit r87541: changeset: 67185:54f1d5651555 branch: 2.7 parent: 67159:2d09af4c137c user:

[issue10254] unicodedata.normalize('NFC', s) regression

2011-09-22 Thread STINNER Victor
STINNER Victor added the comment: "This fix is part of Python 2.7.2, but not of 2.7.2." ... but not of 2.7.1. -- ___ Python tracker <http://bugs.python.o

[issue12931] xmlrpclib confuses unicode and string

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

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-09-22 Thread STINNER Victor
STINNER Victor added the comment: Here is a patch for httplib encoding HTTP headers to ISO-8859-1, as done in Python 3 (see HTTPConnection.putheader() from http.client). urllib is not affected by this issue because it does already encode Unicode, but encode to ASCII instead of ISO-8859-1

[issue10141] SocketCan support

2011-09-22 Thread STINNER Victor
STINNER Victor added the comment: socketcan_v4.patch: - dummy question: why an address is a tuple with 1 string instead of just the string? Does AF_UNIX also uses a tuple of 1 string? - the example should also use struct.pack() to create the frame, I don't like hardcoded BLOB

[issue12746] normalization is affected by unicode width

2011-09-28 Thread STINNER Victor
Changes by STINNER Victor : -- versions: -Python 2.7, Python 3.2 ___ Python tracker <http://bugs.python.org/issue12746> ___ ___ Python-bugs-list mailin

[issue13056] test_multibytecodec.py:TestStreamWriter is skipped after PEP393

2011-09-28 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Unicode ___ Python tracker <http://bugs.python.org/issue13056> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13059] Sporadic test_multiprocessing failure: IOError("bad message length") in recv_bytes()

2011-09-29 Thread STINNER Victor
New submission from STINNER Victor : [ 62/359] test_multiprocessing Warning -- threading._dangling was modified by test_multiprocessing Warning -- multiprocessing.process._dangling was modified by test_multiprocessing test test_multiprocessing crashed -- Traceback (most recent call last

[issue11457] os.stat(): add new fields to get timestamps as Decimal objects with nanosecond resolution

2011-09-29 Thread STINNER Victor
Changes by STINNER Victor : -- title: Expose nanosecond precision from system calls -> os.stat(): add new fields to get timestamps as Decimal objects with nanosecond resolution ___ Python tracker <http://bugs.python.org/issu

[issue13060] allow other rounding modes in round()

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

[issue12746] normalization is affected by unicode width

2011-09-29 Thread STINNER Victor
STINNER Victor added the comment: Issue fixed in Python 3.3 by Martin, changesets 40cf7204ca2b and 50f008019213. -- nosy: +loewis resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue13054] sys.maxunicode value after PEP-393

2011-09-29 Thread STINNER Victor
STINNER Victor added the comment: As said on IRC, unicodesize and character_size should be 1 before the test is something like 'x'*1. Or you can just remove this constant, it's not very useful to have a constant equal to 1 :-) -- ___

[issue13063] test_concurrent_futures failures on Windows: IOError('[Errno 232] The pipe is being closed') on _send_bytes()

2011-09-29 Thread STINNER Victor
STINNER Victor added the comment: See also issue #13059. -- ___ Python tracker <http://bugs.python.org/issue13063> ___ ___ Python-bugs-list mailing list Unsub

[issue13059] Sporadic test_multiprocessing failure: IOError("bad message length") in recv_bytes()

2011-09-29 Thread STINNER Victor
STINNER Victor added the comment: See also issue #13063. -- ___ Python tracker <http://bugs.python.org/issue13059> ___ ___ Python-bugs-list mailing list Unsub

[issue13063] test_concurrent_futures failures on Windows: IOError('[Errno 232] The pipe is being closed') on _send_bytes()

2011-09-29 Thread STINNER Victor
New submission from STINNER Victor : Re-running test 'test_concurrent_futures' in verbose mode test_killed_child (test.test_concurrent_futures.ProcessPoolExecutorTest) ... 5.79s ok test_map (test.test_concurrent_futures.ProcessPoolExecutorTest) ... 3.63s ok test_map

[issue3130] In some UCS4 builds, sizeof(Py_UNICODE) could end up being more than 4.

2011-09-29 Thread STINNER Victor
STINNER Victor added the comment: The PEP 393 has been accepted: strings are now stored as PyUCS1*, PyUCS2* or PyUCS4*. The Py_UNICODE type still exist but is deprecated, and only used in the legacy API. Py_UNICODE is now always the wchar_t type, it cannot be unsigned int anymore. I hope

[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2011-09-29 Thread STINNER Victor
STINNER Victor added the comment: The PEP 393 has been accepted. There is no more narrow or wide build, Py_UNICODE is now always wchar_t. We have also a stable ABI which doesn't depend on the internal stucture of Unicode strings. In Python 3.2, the name of dynamic libraries is

[issue2799] Remove _PyUnicode_AsString(), rework _PyUnicode_AsStringAndSize(), add PyUnicode_AsChar()

2011-09-29 Thread STINNER Victor
STINNER Victor added the comment: The PEP 393 changed the API: #define _PyUnicode_AsString PyUnicode_AsUTF8 #define _PyUnicode_AsStringAndSize PyUnicode_AsUTF8AndSize -- ___ Python tracker <http://bugs.python.org/issue2

[issue1943] improved allocation of PyUnicode objects

2011-09-29 Thread STINNER Victor
STINNER Victor added the comment: The PEP 393 is based on the idea proposed in this issue (use only one memory block, not two), but also enhanced it to reduce more the memory using other technics: - use a different character type depending on the maximum character, - use a shorter

[issue7330] PyUnicode_FromFormat: implement width and precision for %s, %S, %R, %V, %U, %A

2011-09-29 Thread STINNER Victor
STINNER Victor added the comment: Hum, the issue is still open, I will try to review it. -- ___ Python tracker <http://bugs.python.org/issue7330> ___ ___ Pytho

[issue11574] TextIOWrapper: Unicode Fallback Encoding on Python 3.3

2011-09-29 Thread STINNER Victor
Changes by STINNER Victor : -- title: Unicode Fallback Encoding on Python 3.3 -> TextIOWrapper: Unicode Fallback Encoding on Python 3.3 ___ Python tracker <http://bugs.python.org/issu

[issue12632] Python 3 doesn't support cp65001 as the OEM code page

2011-09-29 Thread STINNER Victor
Changes by STINNER Victor : -- title: Windows GPF with Code Page 65001 -> Python 3 doesn't support cp65001 as the OEM code page ___ Python tracker <http://bugs.python.org

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2011-09-29 Thread STINNER Victor
STINNER Victor added the comment: The PEP 393 has been accepted and merge into Python 3.3. Python 3.3 doesn't need the Py_UNICODE_NEXT macro anymore. But my macros (unicode_macros.patch) are still useful. -- versions: +Python 3.2 -Pytho

[issue10521] str methods don't accept non-BMP fillchar on a narrow Unicode build

2011-09-29 Thread STINNER Victor
STINNER Victor added the comment: This issue has been fixed in Python 3.3 thanks to the PEP 393. -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue10

[issue12819] PEP 393 - Flexible Unicode String Representation

2011-09-29 Thread STINNER Victor
STINNER Victor added the comment: PEP 393 has been accepted and merged into Python 3.3. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue13064] Port codecs and error handlers to the new Unicode API

2011-09-29 Thread STINNER Victor
New submission from STINNER Victor : We really need a new API for error handlers, using Python objects instead of Py_UNICODE* strings, and using code point indexes instead of UTF-16 unit indexes (index in the Py_UNICODE* object). It's also inefficient to encode to Py_UNICODE at the

[issue13072] Getting a buffer from a Unicode array uses invalid format

2011-09-29 Thread STINNER Victor
New submission from STINNER Victor : In Python 3.2, when you get a buffer from array.array('u'), "u" is used as buffer format. The format is supposed to be a format from the struct module, and "u" is an invalid struct format. "w" is used on wide mode.

[issue3232] Wrong str->bytes conversion in Lib/encodings/idna.py

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

[issue13083] _sre: getstring() releases the buffer before using it

2011-09-30 Thread STINNER Victor
New submission from STINNER Victor : getstring() of the _sre module contains the following code: - ... buffer = Py_TYPE(string)->tp_as_buffer; if (!buffer || !buffer->bf_getbuffer || (*buffer->bf_getbuffer)(string, &view, PyBU

[issue13084] test_signal failure

2011-10-01 Thread STINNER Victor
STINNER Victor added the comment: WakeupSignalTests.test_pending() doesn't really check our signal handler but more the operating system, especially pthread_sigmask(SIG_UNBLOCK). I don't think that Python should test the signal order delivered by the operating systems when S

[issue13081] Crash in Windows with unknown cause

2011-10-01 Thread STINNER Victor
STINNER Victor added the comment: I suppose that the application uses extensions written in C and one on these extensions is buggy. Can you write a script to reproduce the bug without the application? If not, we cannot help you :-( You may try the faulthandler to get more information: https

[issue13088] Add Py_hexdigits constant: use one unique constant to format a digit to hexadecimal

2011-10-01 Thread STINNER Victor
New submission from STINNER Victor : CPython source code contains a lot of duplicate "0123456789abcdef" constants, declared as static variables. Attached patch uses one unique variable. Use also Py_hexdigit instead of ((c>9) ? c+'a'-10 : c + '0') in binascii,

[issue13072] Getting a buffer from a Unicode array uses invalid format

2011-10-03 Thread STINNER Victor
STINNER Victor added the comment: > The automatic conversion of 'u' to 'I' or 'L' causes test_buffer > (PEP-3118 repo) to fail: > > > # Not implemented formats. Ugly, but inevitable. This is the same as > # issue #2531: equality is also used for

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

2011-10-04 Thread STINNER Victor
STINNER Victor added the comment: > "OSError: [Errno 23] Too many open files in system" Yes, see issue #10348. -- ___ Python tracker <http://bugs.pytho

[issue13063] test_concurrent_futures failures on Windows: IOError('[Errno 232] The pipe is being closed') on _send_bytes()

2011-10-04 Thread STINNER Victor
STINNER Victor added the comment: > Attached patch. Could you please explain your change in generrmap.c in a comment? For example, just add a reference to this issue. -- ___ Python tracker <http://bugs.python.org/issu

[issue13100] sre_compile._optimize_unicode() needs a cleanup

2011-10-04 Thread STINNER Victor
New submission from STINNER Victor : The following comment is wrong, except IndexError: # non-BMP characters; XXX now they should work return charset sys.maxunicode != 65535 is now always true in Python 3.3 if sys.maxunicode != 65535: # XXX: negation

[issue6715] xz compressor support

2011-10-05 Thread STINNER Victor
STINNER Victor added the comment: > I agree with Martin here. We should *NOT* have first > and second class OS support, if we can avoid it. Ok but who will do the job? If nobody is motivated to fix compiler issues, it would be a pity to not add the module for that. -- nosy:

<    4   5   6   7   8   9   10   11   12   13   >