[issue19816] test.regrtest: use tracemalloc to detect memory leaks?

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: I'm no more interested to work on this issue. regrtest.patch is unstable, and I don't know how to make it more reliable. Antoine's allocation counter is enough right now. -- resolution: -> out of date status: open -> closed __

[issue20114] Sporadic failure of test_semaphore_tracker() of test_multiprocessing_forkserver on FreeBSD 9 buildbot

2015-03-18 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue23689] Memory leak in Modules/sre_lib.h

2015-03-18 Thread Alexei Romanov
Changes by Alexei Romanov : -- nosy: +alexei.romanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue23500] Argument Clinic: multiple macro definition

2015-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks as generalization of my patch. It produces the same output. I left comments on Rietveld, but in any case the patch LGTM. -- ___ Python tracker ___

[issue19748] test_time failures on AIX

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: I'm no more interested to work on this issue, I prefer to close it. -- resolution: -> out of date status: open -> closed ___ Python tracker ___

[issue15612] Rewrite StringIO to use the _PyUnicodeWriter API

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: I'm no more interested to work on this issue, and it's not clear that _PyUnicodeWriter is always faster. Switch from a list to _PyUnicodeWriter on a specific event would make the code much more complex. I prefer to just close the issue. -- resolution:

[issue19654] test_tkinter sporadic skipped on "x86 Tiger 3.x" buildbot

2015-03-18 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18507] import_init() should not use Py_FatalError() but return an error

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: This issue was more a reminder for myself (TODO list). I'm no more interested to work on the issue, so I just close it. -- resolution: -> out of date status: open -> closed ___ Python tracker

[issue15599] test_threaded_import fails sporadically on Windows and FreeBSD

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: No real activity on this issue. Since the issue is sporadic and I'm not interested to work on it, I just close the issue as out of date. -- resolution: -> out of date status: open -> closed ___ Python tracker

[issue14555] clock_gettime/settime/getres: Add more clock identifiers

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: I'm no more really interested to add these identifiers. So I just close the issue. -- nosy: +haypo resolution: -> out of date status: open -> closed ___ Python tracker __

[issue19233] test_io.test_interrupted_write_retry_text() hangs on Solaris 10 and FreeBSD 7.2

2015-03-18 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue17628] str==str: compare the first character before calling memcmp()

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: The benefit of any change is unclear. I'm not more interested to work on such optimization, so I just close the issue. -- resolution: -> out of date status: open -> closed ___ Python tracker

[issue17515] Add sys.setasthook() to allow to use a custom AST optimizer

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: I'm not more interested to work on my astoptimizer project, and nobody looks to need sys.setasthook(), so I prefer to close the issue. -- resolution: -> out of date status: open -> closed ___ Python tracker

[issue12500] Skip test_ssl.test_connect_ex() on connection error

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: > @Victor would you like to follow up with your patch? No. So I just close the issue. -- resolution: -> out of date status: open -> closed ___ Python tracker

[issue12304] expose signalfd(2) in the signal module

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: signalfd is very useful for event-driven frameworks like Twisted or asyncio. asyncio doesn't use it, and I didn't see any request to support it yet. asyncio uses signal.set_wakeup_fd() which looks to be enough, and it is now available on all platforms (includi

[issue20600] test_create_server_ssl_verify_failed() failure on "PPC64 AIX 3.x" buildbot

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: Since nobody looks to care of AIX, I just close the issue. -- resolution: -> out of date status: open -> closed ___ Python tracker ___

[issue23303] test_license_exists_at_url() of test_site fails on "x86 XP-4 3.4" buildbot

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: Builder x86 XP-4 3.4 is green again. I close the issue. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___

[issue21735] test_threading.test_main_thread_after_fork_from_nonmain_thread() hangs on the FreeBSD 10 buildbot

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this error recently, so I just close the issue. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ __

[issue22971] test_pickle: "Fatal Python error: Cannot recover from stack overflow." on FreeBSD buildbot

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this failure recently, so I just close the issue. -- resolution: -> out of date status: open -> closed ___ Python tracker ___

[issue22984] test_json.test_endless_recursion(): "Fatal Python error: Cannot recover from stack overflow." on x86 XP-4 3.x buildbot

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: The buildbot is broken, it cannot compile anymore. So I just close the issue. -- resolution: -> out of date status: open -> closed ___ Python tracker _

[issue22861] [2.7] ssl._dnsname_match() and unicode

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: I'm not convinced myself that it's a real issue, and I worked around it in Trollius, so I close the issue. -- resolution: -> out of date status: open -> closed ___ Python tracker

[issue23333] asyncio: add a new Protocol.connection_failed() method

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: The consensus looks to be to reject this feature, so I close the issue. I already commits a compromise: log an error in debug mode. -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue23353] generator bug with exception: tstate->exc_value is not cleared after an except block

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: @Antoine: exctests.patch looks good to me, can you commit it? -- ___ Python tracker ___ ___ Python-b

[issue23456] asyncio: add missing @coroutine decorators

2015-03-18 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue23456] asyncio: add missing @coroutine decorators

2015-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6f7ed6e95ea8 by Victor Stinner in branch '3.4': Issue #23456: Add missing @coroutine decorators in asyncio https://hg.python.org/cpython/rev/6f7ed6e95ea8 -- nosy: +python-dev ___ Python tracker

[issue2211] Cookie.Morsel interface needs update

2015-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Victor. This patch should fix pickling/unpickling. Interesting, we should check all other cases when instance attribute was converted to a property. They are potentially break pickle compatibility. -- Added file: http://bugs.python.org/file38

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: I commited fast_bottom-up.patch to fix the regression of os.walk(). > Could you please add a test based on my example (i.e. converting symlinks to > a directory during walking) and may be other (creating new directory and > adding it to the dirs list)? Sorry,

[issue23605] Use the new os.scandir() function in os.walk()

2015-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4fb829f8c04d by Victor Stinner in branch 'default': Issue #23605: Fix os.walk(topdown=True), don't cache entry.is_symlink() because https://hg.python.org/cpython/rev/4fb829f8c04d -- ___ Python tracker

[issue23694] PEP 475: handle EINTR in fileutils.c

2015-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset ed25e945cdc2 by Victor Stinner in branch 'default': Issue #23694: Handle EINTR in _Py_open() and _Py_fopen_obj() https://hg.python.org/cpython/rev/ed25e945cdc2 -- ___ Python tracker

[issue23685] Fix usage of PyMODINIT_FUNC

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: builtin_modules.patch looks complex. It can be simplified by using the Py_BUILD_CORE define. -- ___ Python tracker ___

[issue23694] PEP 475: handle EINTR in fileutils.c

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: All functions which can fail with EINTR now retries the function on EINTR. I close the issue. -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue2211] Cookie.Morsel interface needs update

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 88e1151e8e02 by Serhiy Storchaka in branch 'default': > Issue #2211: Updated the implementation of the http.cookies.Morsel class. > https://hg.python.org/cpython/rev/88e1151e8e02 I don't understand why, but test_pickle started to fail with this c

[issue23648] PEP 475 meta issue

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: stat manual page of SCO documentation says that stat() can fail with EINTR, but I don't see this error in latest Linux manual page. I tested manually, and I failed to see stat() failing with InterruptedError. http://uw714doc.sco.com/en/man/html.2/stat.2.html S

[issue23648] PEP 475 meta issue

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: I found a way to get a list of functions which can fail with EINTR: search for TEMP_FAILURE_RETRY in the source code of the glibc. TEMP_FAILURE_RETRY: https://www.gnu.org/software/libc/manual/html_node/Interrupted-Primitives.html#Interrupted-Primitives Followin

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-03-18 Thread Martin Panter
Martin Panter added the comment: I think it would really depend on the particular terminal. Sakura (a Unix terminal using the VTE library, like Gnome Terminal) copied the tab literally: $ printf 'tab\ttab|sp sp\n' tab tab|sp sp <== COPIED $ hexdump -C tab tab|sp sp <== PASTED 00

[issue23648] PEP 475 meta issue

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: test_eintr.py: program to check if a Python function can fail with InterruptedError. Modify func() to test a function. (The program checks select.select(), currently it fails with InterruptedError.) -- Added file: http://bugs.python.org/file38539/test_

[issue23698] Fix documentation for multiprocessing.Manager

2015-03-18 Thread Ned Deily
Changes by Ned Deily : -- nosy: +davin, sbt versions: -Python 3.2, Python 3.3, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list

[issue2636] Adding a new regex module (compatible with re)

2015-03-18 Thread Evgeny Kapun
Changes by Evgeny Kapun : -- nosy: +abacabadabacaba ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-03-18 Thread Martin Sekera
Martin Sekera added the comment: But tab characters are rendered by the terminal into spaces. During stdout processing, when the term encounters a \t (0x09), it inserts (into the term buffer that is displayed to the user) as many spaces (0x20) as needed to move the cursor to the nearest tab-st

[issue23697] Module level map & submit for concurrent.futures

2015-03-18 Thread Ned Deily
Changes by Ned Deily : -- nosy: +bquinlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue2211] Cookie.Morsel interface needs update

2015-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Renamed __copy__ to copy, because copy.copy() doesn't need these changes and original report was about the copy() method. Thank you for your contribution and for your responsiveness Demian. -- resolution: -> fixed stage: commit review -> resolved st

[issue2211] Cookie.Morsel interface needs update

2015-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 88e1151e8e02 by Serhiy Storchaka in branch 'default': Issue #2211: Updated the implementation of the http.cookies.Morsel class. https://hg.python.org/cpython/rev/88e1151e8e02 -- nosy: +python-dev ___ Pyth

[issue23689] Memory leak in Modules/sre_lib.h

2015-03-18 Thread Evgeny Kapun
Evgeny Kapun added the comment: This patch doesn't fix the issue. The problem is that the list starting with state->repeat doesn't necessarily contains all repeat contexts that are allocated. Indeed, here [1] and here [2] repeat contexts are temporarily removed from the list. If the match proc

[issue23694] PEP 475: handle EINTR in fileutils.c

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: Charles-François Natali added the comment: > Note that dup() cannot fail with EINTR, it is non-blocking: dup2() can > fail, because f the target FD is open, it has to close it, but not > dup(). Oh right, I misread the manual page. I will leave _Py_dup() unchange

[issue23688] unnecessary copying of memoryview in gzip.GzipFile.write?

2015-03-18 Thread Wolfgang Maier
Wolfgang Maier added the comment: Thanks everyone for the lively discussion ! I like Serhiy's idea of making write work with arbitrary objects supporting the buffer protocol. In fact, I noticed before that GzipFile.write misbehaves with array.array input. It pretends to accept that, but it'll

[issue23500] Argument Clinic: multiple macro definition

2015-03-18 Thread Larry Hastings
Larry Hastings added the comment: What do you think of this approach? Now a "Destination" object behaves like an array of text accumulators. If you ask for one that doesn't exist it's created for you. When the Destination is dumped, the output from each accumulator is joined together, like

[issue14073] allow per-thread atexit()

2015-03-18 Thread Vadim Markovtsev
Vadim Markovtsev added the comment: I agree that there must be some way to join the threads before exiting, with a callback or anything else. Currently, my thread pool implementation has to monkey patch sys.exit and register SIGINT handler to shutdown itself and avoid the hangup (100+ LoC to c

[issue23207] logging.basicConfig does not validate keyword arguments

2015-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset d3b420807a86 by Vinay Sajip in branch '3.4': Issue #23207: Improved kwarg validation. https://hg.python.org/cpython/rev/d3b420807a86 New changeset 7ff0d7b50b36 by Vinay Sajip in branch 'default': Issue #23207: merged fix from 3.4. https://hg.python.

[issue23694] PEP 475: handle EINTR in fileutils.c

2015-03-18 Thread Charles-François Natali
Charles-François Natali added the comment: LGTM. Note that dup() cannot fail with EINTR, it is non-blocking: dup2() can fail, because f the target FD is open, it has to close it, but not dup(). See e.g. this man page from my Debian: EINTR The dup2() or dup3() call was interrupted by a s

<    1   2