[issue24484] multiprocessing cleanup occasionally throws exception

2015-06-21 Thread Jorge Herskovic
New submission from Jorge Herskovic: I'm writing a library on top of multiprocessing. As part of the test suite, I create and destroy dozens of processes repeatedly. About once in 50 runs, the tests complete successfully but the program crashes with: Error in atexit._run_exitfuncs: Traceback

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Is it expected? No, it is a bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24482 ___ ___

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Dmitry Odzerikho
Changes by Dmitry Odzerikho dmitry.odzeri...@gmail.com: Added file: http://bugs.python.org/file39757/test_segfault.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24482 ___

[issue23883] __all__ lists are incomplete

2015-06-21 Thread Jacek Kołodziej
Jacek Kołodziej added the comment: I've added previously missing test and docs for test.support.check__all__ in Issue23883_support_check__all__.v2.patch . Awaiting review. :) -- Added file: http://bugs.python.org/file39760/Issue23883_support_check__all__.v2.patch

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can't reproduce the crash in 3.3+ (this doesn't matter the bug is gone), but can reproduce in 2.7 and 3.2. Here is a reproducer that compatible with 2.7 and 3.x. -- Added file: http://bugs.python.org/file39762/test_segfault.py

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2015-06-21 Thread Martin Panter
Martin Panter added the comment: See Issue 1186900 about the NNTP client raising EOFError. As for the “cannot read from timed out object” errors (also reported in Issue 19613), I think the test classes are bad. The test logs don’t seem to be available, but I reckon that the previous test to

[issue24426] re.split performance degraded significantly by capturing group

2015-06-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24426 ___

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24482 ___ ___

[issue24408] tkinter.font.Font.measure() broken in 3.5

2015-06-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8e90f3ffa784 by Serhiy Storchaka in branch '2.7': Issue #24408: Fixed test for tkinter.Font on OS X. https://hg.python.org/cpython/rev/8e90f3ffa784 New changeset 014ee2df443a by Serhiy Storchaka in branch '3.4': Issue #24408: Fixed test for

[issue24408] tkinter.font.Font.measure() broken in 3.5

2015-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Ned and Martin. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24408

[issue24483] Avoid repeated hash calculation in C implementation of functools.lru_cache()

2015-06-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: There is a difference between Python and C implementations of functools.lru_cache(). Python implementation caches the hash of the key, C implementation doesn't. May be this is not too important (at least I have no an example that shows the benefit of

[issue24436] _PyTraceback_Add has no const qualifier for its char * arguments

2015-06-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6f659b9f7fbc by Serhiy Storchaka in branch '3.4': Issue #24436: Added const qualifiers for char* arguments of _PyTraceback_Add. https://hg.python.org/cpython/rev/6f659b9f7fbc New changeset 9602b8313dd5 by Serhiy Storchaka in branch '3.5': Issue

[issue24436] _PyTraceback_Add has no const qualifier for its char * arguments

2015-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Michael. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24436

[issue24129] Incorrect (misleading) statement in the execution model documentation

2015-06-21 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Nick, thank you for a review, I have made a new patch with all the previous comments taken into account. -- Added file: http://bugs.python.org/file39759/classdoc-v4.patch ___ Python tracker rep...@bugs.python.org

[issue24483] Avoid repeated hash calculation in C implementation of functools.lru_cache()

2015-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New patch adds _PyDict_DelItem_KnownHash() and uses it to guarantee that the hash is only calculated once. -- Added file: http://bugs.python.org/file39761/clru_cache_known_hash_2.patch ___ Python tracker

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Dmitry Odzerikho
New submission from Dmitry Odzerikho: Hi, I'm using iterators returned by itertools.tee in different threads. The original iterator passed to itertools.tee is thread-safe, however, it doesn't guarantees that the cloned iterators are thread safe too. However the equivalent implementation of

[issue24464] Got warning when compiling sqlite3 module on Mac OSX

2015-06-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: https://www.sqlite.org/c3ref/enable_shared_cache.html appears to indicate that the function is deprecated on OSX 10.7 and iOS 5.0, but looking at the latest sources on sqlite.org that's not the case, the warning in the documentation appears to be for the

[issue24436] _PyTraceback_Add has no const qualifier for its char * arguments

2015-06-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24436 ___ ___

[issue24483] Avoid repeated hash calculation in C implementation of functools.lru_cache()

2015-06-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is important. -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24483 ___ ___

[issue14373] C implementation of functools.lru_cache

2015-06-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: If the C version is to remain in Python3.5, please make sure it provides all of the carefully designed features of the pure python version: * The hash function is called no more than once per element * The key is constructed to be flat as possible

[issue24309] string.Template should be using str.format and/or deprecated

2015-06-21 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24309 ___ ___ Python-bugs-list

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Dmitry Odzerikho
Changes by Dmitry Odzerikho dmitry.odzeri...@gmail.com: Removed file: http://bugs.python.org/file39756/test_segfault.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24482 ___

[issue24436] _PyTraceback_Add has no const qualifier for its char * arguments

2015-06-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24436 ___ ___

[issue24483] Avoid repeated hash calculation in C implementation of functools.lru_cache()

2015-06-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would like the full functionality of the Python version to be implemented. Guaranteeing that the hash is only calculated once prevents a reentrancy hole and provides a speed benefit as well. Please implement exactly what the pure python version does

[issue24483] Avoid repeated hash calculation in C implementation of functools.lru_cache()

2015-06-21 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- Removed message: http://bugs.python.org/msg245600 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24483 ___

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +rhettinger stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24482 ___

[issue24426] re.split performance degraded significantly by capturing group

2015-06-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7e46a503dd16 by Serhiy Storchaka in branch 'default': Issue #24426: Fast searching optimization in regular expressions now works https://hg.python.org/cpython/rev/7e46a503dd16 -- nosy: +python-dev ___

[issue1182143] making builtin exceptions more informative

2015-06-21 Thread George Jenkins
George Jenkins added the comment: Reviewer please :) (or, advice on how I can get this to proceed, thx) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1182143 ___

[issue1182143] making builtin exceptions more informative

2015-06-21 Thread R. David Murray
R. David Murray added the comment: What does your patch implement? It's not clear from the issue discussion that an API was decided on. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1182143

[issue24439] Feedback for awaitable coroutine documentation

2015-06-21 Thread Yury Selivanov
Yury Selivanov added the comment: Martin, if you want to help with the documentation, it would be great if you can help me with updating asyncio coroutines section: https://docs.python.org/3.5/library/asyncio-task.html#coroutines -- ___ Python

[issue24479] Support LMMS project files in mimetypes.guess_type

2015-06-21 Thread Andreas Nilsson
Andreas Nilsson added the comment: Here is a decompressed example (use lmms -d file to decompress). Shouldn't this be parsed as XML? Here's a log of my experiment with it: Python 2.7.9 (default, Apr 2 2015, 15:33:21) [GCC 4.9.2] on linux2 Type help, copyright, credits or license for more

[issue14373] C implementation of functools.lru_cache

2015-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If the C version is to remain in Python3.5, please make sure it provides all of the carefully designed features of the pure python version: * The hash function is called no more than once per element Will be satisfied by issue24483. I think all other

[issue24483] Avoid repeated hash calculation in C implementation of functools.lru_cache()

2015-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New patch touches also unbounded cache version. Larry, do you allow to commit such patch in 3.5? -- nosy: +larry versions: +Python 3.5 Added file: http://bugs.python.org/file39766/clru_cache_known_hash_3.patch ___

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-06-21 Thread Yury Selivanov
Yury Selivanov added the comment: An updated patch is attached. I'll commit it tomorrow morning. -- Added file: http://bugs.python.org/file39764/corotype.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24400

[issue24408] tkinter.font.Font.measure() broken in 3.5

2015-06-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 20c9290a5de4 by Ned Deily in branch '2.7': Issue #24408: Prevent test_font failures with non-ascii font names. https://hg.python.org/cpython/rev/20c9290a5de4 -- ___ Python tracker rep...@bugs.python.org

[issue24484] multiprocessing cleanup occasionally throws exception

2015-06-21 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +davin, sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24484 ___ ___ Python-bugs-list mailing list

[issue23531] SSL operations cause entire process to hang

2015-06-21 Thread johnkw
johnkw added the comment: This bug is not present on Python 2.7.10 on 64-bit Linux. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23531 ___ ___

[issue24464] Got warning when compiling sqlite3 module on Mac OS X

2015-06-21 Thread Ned Deily
Ned Deily added the comment: I agree with Ronald that the proposed patch should not be applied as is. For example, the Pythons installed by the current python.org OS X installers build and link with a newer version of libsqlite3. This is one of several examples of third-party libraries for

[issue16095] urllib2 failing with squid proxy and digest authentication

2015-06-21 Thread Martin Panter
Martin Panter added the comment: There are two problems with the test case, and one bug in Python: 1. HTTPPasswordMgr doesn’t handle realm=None; it has to be a string. You can use HTTPPasswordMgrWithDefaultRealm though. 2. The password managers won’t match a proxy with a non-standard port

[issue16095] urllib2 failing with squid proxy and digest authentication

2015-06-21 Thread Martin Panter
Martin Panter added the comment: I should point out my patch also adds add_password() methods for the authentication handlers to the documentation. These were only documented by example, but everyone seems to prefer using them rather than the equivalent password manager method. --

[issue24259] tar.extractall() does not recognize unexpected EOF

2015-06-21 Thread Martin Panter
Martin Panter added the comment: From the current documentation and limited experience with the module, ReadError (or a subclass) sounds best. I would only expect OSError only for OS-level things, like file not found, disk error, etc. The patches look good. One last suggestion is to use

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-06-21 Thread Stefan Behnel
Stefan Behnel added the comment: I added three more comments to the review. The rest looks good to me, too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24400 ___

[issue22442] Deprecate PIPE with subprocess.check_call() and call()

2015-06-21 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag stage: needs patch - patch review versions: +Python 3.6 -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22442