[issue32153] mock.create_autospec fails if an attribute is a partial function

2018-12-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @cjw296 since the unit tests were added and the original report is fixed with 3.7 and above can this be closed? -- ___ Python tracker

[issue35468] [3.6/3.7] idlelib/help.html mentions 3.8alpha0 docs

2018-12-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE pays no attention to that part of the html file. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue8765] Tests unwillingly writing unicocde to raw streams

2018-12-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10357 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue20800] Cannot run gui tests twice.

2018-12-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Either test repeated works now. -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ _

[issue32153] mock.create_autospec fails if an attribute is a partial function

2018-12-12 Thread Chris Withers
Chris Withers added the comment: Yep! Good catch :-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue8765] Tests unwillingly writing unicocde to raw streams

2018-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree, that it would be right to accept only binary strings when write to binary stream. But I afraid that it is too late to change this in the 16th bugfix of 2.7. This can break existing code or tests. I suggest to change the behavior only in the Py3k c

[issue20623] Run test_htmlparser with unbuffered source

2018-12-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- type: behavior -> enhancement versions: +Python 3.8 -Python 3.5 ___ Python tracker ___ ___ Python-bu

[issue20127] Race condition in test_threaded_import.task()?

2018-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Buildbots logs no longer available. Looking at the code, I see nothing suspicious in the finally clause. The size of the done_tasks is increased by 1 in every thread, and at least one thread will call done.set() when len(done_tasks) == N. Could you please

[issue31823] Opaque default value for close_fds argument in Popen.__init__

2018-12-12 Thread Tal Einat
Tal Einat added the comment: Gregory, this issue was about the docs, not the doc-string (help()). Are you sure it should be closed? -- ___ Python tracker ___

[issue15192] test_bufio failures on Win64 buildbot

2018-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The implementation of test.support.unlink() was changed since. It tries to change permissions of read-only files, and repeat attempts several times. It looks more reliable now. Is this issue still reproducible? -- nosy: +serhiy.storchaka status: op

[issue13369] timeout with exit code 0 while re-running failed tests

2018-12-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue17185] unittest mock create_autospec doesn't correctly replace mocksignature

2018-12-12 Thread Chris Withers
Chris Withers added the comment: New changeset 6a12931c9cb5d472fe6370dbcd2bde72f34dddb4 by Chris Withers (Miss Islington (bot)) in branch '3.7': bpo-17185: Add __signature__ to mock that can be used by inspect for signature (GH11125) https://github.com/python/cpython/commit/6a12931c9cb5d472f

[issue26704] unittest.mock.patch: Double patching instance method: AttributeError: Mock object has no attribute '__name__'

2018-12-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +10358 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue26704] unittest.mock.patch: Double patching instance method: AttributeError: Mock object has no attribute '__name__'

2018-12-12 Thread Chris Withers
Change by Chris Withers : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2018-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Starting from 3.7 Python always uses system libffi. 3.4 and 3.5 are in security bugfix only mode. So this issue is only for 2.7 and 3.6. -- nosy: +serhiy.storchaka versions: +Python 3.6 -Python 3.4, Python 3.5 __

[issue9999] test_shutil cross-file-system tests are fragile (may not test what they purport to test)

2018-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Starting from issue11560 test_shutil patches os.rename to imitate a failure in cross-file-system move. -- nosy: +serhiy.storchaka resolution: -> out of date stage: needs patch -> resolved status: open -> closed

[issue9960] test_structmembers fails on s390x (bigendian 64-bit): int/Py_ssize_t issue

2018-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This was fixed in issue17928. -- nosy: +serhiy.storchaka resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue2661] Mapping tests cannot be passed by user implementations

2018-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Walter, do you mind to create a PR? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python

[issue14143] test_ntpath failure on Windows

2018-12-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue35469] [2.7] time.asctime() regression

2018-12-12 Thread STINNER Victor
New submission from STINNER Victor : It seems like bpo-31339 introduced a regression with commit eeadf5fc231163ec97a8010754d9c995c7c14876 to fix a security issue. Copy of of bencordova's comment from GitHub: https://github.com/python/cpython/pull/3293#issuecomment-446378058 I'm new at comment

[issue15626] unittest.main negates -bb option and programmatic warning configuration

2018-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Something was changed in 3.7, but I do not see differences in unittest that can cause this. $ python3.6 -bb testbb.py testbb.py:7: BytesWarning: str() on a bytes instance str(b"") . -- R

[issue11955] 3.3 : test_argparse.py fails 'make test'

2018-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can not reproduce failures. Are they still reproducible? -- nosy: +serhiy.storchaka status: open -> pending ___ Python tracker ___ __

[issue35469] [2.7] time.asctime() regression

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: Even if behavior changes in minor Python release are not welcome, IMHO this one was justified and worth it. asctime() has a crappy API: it returns a pointer to a static buffer somewhere in the libc. asctime_r() is better, but it has an undefined behavior for

[issue20118] test_imaplib test_linetoolong fails on 2.7 in SSL test on some buildbots

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 16d63202af35dadd652a5e3eae687ea709e95b11 by Victor Stinner in branch '2.7': bpo-16039: CVE-2013-1752: Limit imaplib.IMAP4_SSL.readline() (GH-11120) https://github.com/python/cpython/commit/16d63202af35dadd652a5e3eae687ea709e95b11 -- _

[issue16039] imaplib: unlimited readline() from connection

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 16d63202af35dadd652a5e3eae687ea709e95b11 by Victor Stinner in branch '2.7': bpo-16039: CVE-2013-1752: Limit imaplib.IMAP4_SSL.readline() (GH-11120) https://github.com/python/cpython/commit/16d63202af35dadd652a5e3eae687ea709e95b11 -- _

[issue35470] A deadly decref in _PyImport_FindExtensionObjectEx()

2018-12-12 Thread Zackery Spytz
New submission from Zackery Spytz : In _PyImport_FindExtensionObjectEx(), "mod" shouldn't be decrefed if _PyState_AddModule() fails. -- components: Interpreter Core messages: 331693 nosy: ZackerySpytz priority: normal severity: normal status: open title: A deadly decref in _PyImport_Fi

[issue35470] A deadly decref in _PyImport_FindExtensionObjectEx()

2018-12-12 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +10359 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue33106] Deleting a key in a read-only gdbm results in KeyError, not gdbm.error

2018-12-12 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 4fb0b8bc25c52aae8dcb4353e69c1c88999a9a53 by Xiang Zhang in branch 'master': bpo-33106: change dbm key deletion error for readonly file from KeyError to dbm.error (#6295) https://github.com/python/cpython/commit/4fb0b8bc25c52aae8dcb4353e69c1c88999a

[issue33106] Deleting a key in a read-only gdbm results in KeyError, not gdbm.error

2018-12-12 Thread Xiang Zhang
Change by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: behavior -> enhancement ___ Python tracker ___ ___

[issue35470] A deadly decref in _PyImport_FindExtensionObjectEx()

2018-12-12 Thread Xiang Zhang
Xiang Zhang added the comment: What about version 3.6? -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue15626] unittest.main negates -bb option and programmatic warning configuration

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: > Something was changed in 3.7 Yeah, Python 3.7 handles warning options differently: there is the PEP 565 and this commit: commit 747f48e2e92390c44c72f52a1239959601cde157 Author: Victor Stinner Date: Tue Dec 12 22:59:48 2017 +0100 bpo-32230: Set sys.

[issue20118] test_imaplib test_linetoolong fails on 2.7 in SSL test on some buildbots

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: The issue should now be fixed. I will reopen it if the test starts failing on a CI. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue16039] imaplib: unlimited readline() from connection

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: I added imaplib.IMAP4_SSL.readline() to my python-security website: https://python-security.readthedocs.io/vuln/cve-2013-1752_cve-2013-1752_limit_imaplib.imap4_ssl.readline.html I'm now waiting for a Python 2.7.16 release. -- priority: release blocke

[issue35471] Remove macpath module

2018-12-12 Thread STINNER Victor
New submission from STINNER Victor : The module 'macpath' has been deprecated in Python 3.7 by bpo-9850 and scheduled for removal in Python 3.8. Attached PR removes the module. -- components: Library (Lib) messages: 331699 nosy: vstinner priority: normal severity: normal status: open t

[issue35471] Remove macpath module

2018-12-12 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +10360 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35471] Remove macpath module

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: According to the PEP 11, MacOS 9 support has been dropped in Python 2.4 (released in 2004: 14 years ago!). So I think that it's now ok to remove the macpath module, especially because it's deprecated since Python 3.7. --

[issue9850] obsolete macpath module dangerously broken and should be removed

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-35471: "Remove macpath module". -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue35471] Remove macpath module

2018-12-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mail

[issue35471] Remove macpath module

2018-12-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm in favour of removing macpath. I was against removing the module in the past because parts of the macOS API still used (on probably still use) classic MacOS style paths. Most if not all APIs are by this time deprecated, which makes it less and less lik

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: The new test_del_pool() test of the fix failed on a buildbot: bpo-35413 "test_multiprocessing_fork: test_del_pool() leaks dangling threads and processes on AMD64 FreeBSD CURRENT Shared 3.x". -- ___ Python tracker

[issue35413] test_multiprocessing_fork: test_del_pool() leaks dangling threads and processes on AMD64 FreeBSD CURRENT Shared 3.x

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: I reverted the change which addd test_del_pool(): https://bugs.python.org/issue34172#msg331198 So this issue can be fixed. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue13369] timeout with exit code 0 while re-running failed tests

2018-12-12 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2018-12-12 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue2661] Mapping tests cannot be passed by user implementations

2018-12-12 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue14143] test_ntpath failure on Windows

2018-12-12 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue11955] 3.3 : test_argparse.py fails 'make test'

2018-12-12 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue15626] unittest.main negates -bb option and programmatic warning configuration

2018-12-12 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue11955] 3.3 : test_argparse.py fails 'make test'

2018-12-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue14143] test_ntpath failure on Windows

2018-12-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue13369] timeout with exit code 0 while re-running failed tests

2018-12-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue35267] reproducible deadlock with multiprocessing.Pool

2018-12-12 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue35472] python 3.7.2 rc1 bumped the build requirements for no reason

2018-12-12 Thread Matthias Klose
New submission from Matthias Klose : python 3.7.2 rc1 bumped the build requirements apparently for no reason, now requiring sphinx 1.7 instead of 1.6.x before. This is a major pain, if you want to provide the build including the documentation on a stable release. Pretty please can we avoid

[issue35471] Remove macpath module

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: > I was against removing the module in the past because parts of the macOS API > still used (on probably still use) classic MacOS style paths. Most if not > all APIs are by this time deprecated, which makes it less and less like that > anyone will use macpa

[issue35472] python 3.7.2 rc1 bumped the build requirements for no reason

2018-12-12 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +mdk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue35472] python 3.7.2 rc1 bumped the build requirements for no reason

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: "for no reason" I guess that it's related to this change: commit c03bf0ae794c3bec9b56f38164535fd1f5bfc04a Author: Adrian Liaw Date: Mon Nov 5 05:04:51 2018 +0800 Doc: Disable smartquotes for zh-tw, zh-cn, fr and ja translations (GH-9423) Extract: di

[issue35465] Document add_signal_handler

2018-12-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: The proposal sounds great! Would you prepare a pull request for docs update? -- nosy: +asvetlov ___ Python tracker ___ __

[issue35346] Modernize Lib/platform.py code

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset b0e0877629e3df4bc3042fd424e96f197b2e9fa4 by Victor Stinner in branch 'master': bpo-35346: Drop Mac OS 9 support from platform (GH-10959) https://github.com/python/cpython/commit/b0e0877629e3df4bc3042fd424e96f197b2e9fa4 --

[issue35346] Modernize Lib/platform.py code

2018-12-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10361 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35346] Modernize Lib/platform.py code

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: > Top-imported warnings is not used. Fixed by commit b8e689a6e8134e88f857a55e50b6a4977967e385. > struct.calcsize('P') is always success. I wrote PR 11130 for that. Note: struct.calcsize('P') always works on Python 2.7 as well. > plistlib is always availabl

[issue35412] test_future4 ran no test

2018-12-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10362 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35472] python 3.7.2 rc1 bumped the build requirements for no reason

2018-12-12 Thread Ned Deily
Ned Deily added the comment: Julien can give the definite answer. But, sorry, I don't see this as a release blocker. We've had to bump Sphinx versions for a number of reasons as the documentation has become more sophisticated between cycles and over a release cycle. In fact, we're now usi

[issue35412] test_future4 ran no test

2018-12-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10364 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue34279] RFC: issue a warning in regrtest when no tests have been executed?

2018-12-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10363 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35412] test_future4 ran no test

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 502fe19b10f66235fcf8f13fc1c0308190845def by Victor Stinner in branch 'master': bpo-35412: Add testcase to test_future4 (GH-11131) https://github.com/python/cpython/commit/502fe19b10f66235fcf8f13fc1c0308190845def -- ___

[issue35473] Intel compiler (icc) does not fully support C11 Features, including atomics

2018-12-12 Thread jamie schnaitter
New submission from jamie schnaitter : I am currently trying to build 3.6.7 and 3.7.1 using Intel 2019 and it is failing because Intel's implementation of C11, in particular stdatomic, is incomplete. I receive many errors similar to the following, when it cannot find 'atomic_uintptr_t', whic

[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys

2018-12-12 Thread Elliot Edmunds
Elliot Edmunds added the comment: I have personally come across situations where I am calling a Python script from a C program and would like to check the exit codes of the script, and have had to write sys.exit(1) and sys.exit(0) in Python, and compared them to EXIT_SUCCESS/EXIT_FAILURE in

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2018-12-12 Thread Ryan McCampbell
New submission from Ryan McCampbell : The mimetypes.guess_all_extensions function is defined as: def guess_all_extensions(self, type, strict=True): type = type.lower() extensions = self.types_map_inv[True].get(type, []) if not strict: for ext in self.types_map_inv[False].get

[issue35475] Docs do not show PyImport_AddModuleObject() returns a borrowed reference.

2018-12-12 Thread Eric Snow
New submission from Eric Snow : In the C-API documentation the entry for PyImport_AddModuleObject[1] does not indicate that it returns a borrowed reference. [1] https://docs.python.org/3/c-api/import.html#c.PyImport_AddModuleObject -- assignee: docs@python components: Documentation ke

[issue35476] _imp_create_dynamic_impl() does not clear error.

2018-12-12 Thread Eric Snow
New submission from Eric Snow : In _imp_create_dynamic_impl() [1] the case where _PyImport_FindExtensionObject() returns NULL may leave an error set. Either the error should be raised (like _imp_create_builtin() does) or it should be cleared (via PyErr_Clear()). -- components: Inter

[issue35470] A deadly decref in _PyImport_FindExtensionObjectEx()

2018-12-12 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow type: -> behavior versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list maili

[issue35306] OSError [WinError 123] when testing if pathlib.Path('*') (asterisks) exists

2018-12-12 Thread Vladimir Matveev
Change by Vladimir Matveev : -- keywords: +patch pull_requests: +10365 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue35465] [asyncio] Document loop.add_signal_handler

2018-12-12 Thread Brett Cannon
Change by Brett Cannon : -- title: Document add_signal_handler -> [asyncio] Document loop.add_signal_handler ___ Python tracker ___

[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys

2018-12-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue25430] speed up ipaddress __contain__ method

2018-12-12 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue35465] [asyncio] Document loop.add_signal_handler

2018-12-12 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: +asyncio nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue35472] python 3.7.2 rc1 bumped the build requirements for no reason

2018-12-12 Thread Julien Palard
Julien Palard added the comment: Hi Matthias, Sorry to hear it's a pain for you. Can you explain in more details what hurt your workflow? We bumped Sphinx, as Victor said, to fix rendering issues in those documentation translations: zh-tw, zh-cn, fr and ja, so it's not a feature or an ideo

[issue35477] multiprocessing.Pool.__enter__() should raise an exception if called twice

2018-12-12 Thread STINNER Victor
New submission from STINNER Victor : On a file, "with file:" fails if it's used a second time: --- fp = open('/etc/issue') with fp: print("first") with fp: print("second") --- fails with "ValueError: I/O operation on closed file", because file.__enter__() raises this exception if the f

[issue35477] multiprocessing.Pool.__enter__() should raise an exception if called twice

2018-12-12 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +10366 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35477] multiprocessing.Pool.__enter__() should raise an exception if called twice

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: Currently, the error only occurs when apply() is called: --- import multiprocessing def the_test(): pool = multiprocessing.Pool(1) with pool: print(pool.apply(int, (2,))) with pool: print(pool.apply(int, (3,))) # <-- raise here the

[issue31823] Opaque default value for close_fds argument in Popen.__init__

2018-12-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: Only if someone can point to a concrete problem to be fixed in the 3.7+ docs. Looking at all references to close_fds in https://docs.python.org/3/library/subprocess.html I don't see one. (I'm not going to touch the 3.6 docs) -- _

[issue35208] IDLE: Squeezed lines count ignores window width

2018-12-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Changing the width of the window changes the number of visible lines because of line wrapping. But it does not change the number of logical lines. My understanding is that squeezer currently reports the latter, and that is not necessarily a bug. Not that

[issue34977] Release Windows Store app containing Python

2018-12-12 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue35467] IDLE: unrequested pasting into Shell after restart

2018-12-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: I don't believe I've seen this happen, but I'll watch for it. One thing that I noticed while trying to recreate it is that I can press F5 on the Shell window even though there isn't a Run menu. Maybe the issue is somehow related using shortcuts that aren't

[issue35478] multiprocessing: ApplyResult.get() hangs if the pool is terminated

2018-12-12 Thread STINNER Victor
New submission from STINNER Victor : The following code hangs: --- import multiprocessing, time pool = multiprocessing.Pool(1) result = pool.apply_async(time.sleep, (1.0,)) pool.terminate() result.get() --- pool.terminate() terminates workers before time.sleep(1.0) completes, but the pool does

[issue35378] multiprocessing.Pool.imaps iterators do not maintain alive the multiprocessing.Pool objects

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-35478: multiprocessing: ApplyResult.get() hangs if the pool is terminated. -- ___ Python tracker ___ __

[issue23057] [Windows] asyncio: support signal handlers on Windows (feature request)

2018-12-12 Thread Vladimir Matveev
Change by Vladimir Matveev : -- keywords: +patch pull_requests: +10367 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35479] multiprocessing.Pool.join() always takes at least 100 ms

2018-12-12 Thread STINNER Victor
New submission from STINNER Victor : The join() method of multiprocessing.Pool calls self._worker_handler.join(): it's a thread running _handle_workers(). The core of this thread function is: while thread._state == RUN or (pool._cache and thread._state != TERMINATE): pool.

[issue35479] multiprocessing.Pool.join() always takes at least 100 ms

2018-12-12 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +10368 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35478] multiprocessing: ApplyResult.get() hangs if the pool is terminated

2018-12-12 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +10369 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35479] multiprocessing.Pool.join() always takes at least 100 ms

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: Attached PR 11136 modify _worker_handler() loop to wait on threading.Event events, so Pool.join() completes as soon as possible. Example: --- import multiprocessing import time def the_test(): start_time = time.monotonic() pool = multiprocessing.Pool

[issue35477] multiprocessing.Pool.__enter__() should raise an exception if called twice

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 08c2ba0717089662132af69bf5948d82277a8a69 by Victor Stinner in branch 'master': bpo-35477: multiprocessing.Pool.__enter__() fails if called twice (GH-11134) https://github.com/python/cpython/commit/08c2ba0717089662132af69bf5948d82277a8a69 -

[issue35477] multiprocessing.Pool.__enter__() should raise an exception if called twice

2018-12-12 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue9334] argparse: add a full fledged parser as a subparser

2018-12-12 Thread Victor Porton
Victor Porton added the comment: Subparsers are added like: subparsers.add_parser('checkout', aliases=['co']) But I want to use a parser BOTH as a subparser and as a full-fledged parser. It is because my program should understand both of the following command line options: boiler chain -t

[issue35480] argparse: add a full fledged parser as a subparser

2018-12-12 Thread Victor Porton
New submission from Victor Porton : Subparsers are added like: subparsers.add_parser('checkout', aliases=['co']) But I want to use a parser BOTH as a subparser and as a full-fledged parser. It is because my program should understand both of the following command line options: boiler chain -

[issue35442] Chain of several subcommands in argparse

2018-12-12 Thread Victor Porton
Victor Porton added the comment: One of possible solutions: https://bugs.python.org/issue35480 -- ___ Python tracker ___ ___ Python

[issue9334] argparse: add a full fledged parser as a subparser

2018-12-12 Thread Eric V. Smith
Eric V. Smith added the comment: Why the title change? The original problem still exists, and I don't see how it's related to subparsers. -- ___ Python tracker ___ ___

[issue33725] Python crashes on macOS after fork with no exec

2018-12-12 Thread Ned Deily
Ned Deily added the comment: > Would it be safe to run the multiprocessing tests on recent macOS with the > OBJC_DISABLE_INITIALIZE_FORK_SAFETY environment variable set? See Ronald's reply above in msg331101. I believe his point is that there is nothing you can do to make this safe. And it's

[issue35480] argparse: add a full fledged parser as a subparser

2018-12-12 Thread Victor Porton
Victor Porton added the comment: Oh, I noticed I can do my_subparser = subparsers.add_parser('checkout', aliases=['co']) So resolution invalid. -- resolution: -> not a bug ___ Python tracker _

[issue33725] Python crashes on macOS after fork with no exec

2018-12-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Dec 12, 2018, at 17:59, Ned Deily wrote: > > Ned Deily added the comment: > >> Would it be safe to run the multiprocessing tests on recent macOS with the >> OBJC_DISABLE_INITIALIZE_FORK_SAFETY environment variable set? > > See Ronald's reply above in m

[issue35478] multiprocessing: ApplyResult.get() hangs if the pool is terminated

2018-12-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10370 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

  1   2   >