[issue29842] Make Executor.map work with infinite/large inputs correctly

2017-05-14 Thread Max
Max added the comment: I'm also concerned about this (undocumented) inconsistency between map and Executor.map. I think you would want to make your PR limited to `ThreadPoolExecutor`. The `ProcessPoolExecutor` already does everything you want with its `chunksize` paramater, and adding

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue30110] test_asyncio reports reference leak

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 982a17e02d99dcf6e4dff93110cff5ecc59247f5 by Xiang Zhang in branch '2.7': bpo-30242: resolve some undefined behaviours in struct (#1418) (#1588) https://github.com/python/cpython/commit/982a17e02d99dcf6e4dff93110cff5ecc59247f5 --

[issue30110] test_asyncio reports reference leak

2017-05-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 51ab4ada8fc99c24d434a533693375169c097006 by Xiang Zhang in branch '3.5': bpo-30110: fix resource leak in test_asyncio.test_events (#1413) (#1585) https://github.com/python/cpython/commit/51ab4ada8fc99c24d434a533693375169c097006 --

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset dd2a09cf98845b1460f0e049ad0ffeeb5c6c6476 by Xiang Zhang in branch '3.5': bpo-30242: resolve some undefined behaviours in struct (#1418) (#1587) https://github.com/python/cpython/commit/dd2a09cf98845b1460f0e049ad0ffeeb5c6c6476 --

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset aad1caf55f7fadb00ee097a1465bece4e128d8ef by Xiang Zhang in branch '3.6': bpo-30242: resolve some undefined behaviours in struct (#1418) (#1586) https://github.com/python/cpython/commit/aad1caf55f7fadb00ee097a1465bece4e128d8ef --

[issue30110] test_asyncio reports reference leak

2017-05-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 0ce1f7e02d4102e8a459d1855d689c8e4613a327 by Xiang Zhang in branch '3.6': bpo-30110: fix resource leak in test_asyncio.test_events (#1413) (#1584) https://github.com/python/cpython/commit/0ce1f7e02d4102e8a459d1855d689c8e4613a327 --

[issue29570] Windows Buildbot 2.7 is broken

2017-05-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Jeremy. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1681 ___ Python tracker ___ ___

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1680 ___ Python tracker ___ ___

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1679 ___ Python tracker ___ ___

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 981096f98b9c131594b0ac85ad01b63cbd11aa0a by Xiang Zhang in branch 'master': bpo-30242: resolve some undefined behaviours in struct (#1418) https://github.com/python/cpython/commit/981096f98b9c131594b0ac85ad01b63cbd11aa0a --

[issue30110] test_asyncio reports reference leak

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1678 ___ Python tracker ___ ___

[issue30110] test_asyncio reports reference leak

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1677 ___ Python tracker ___ ___

[issue30110] test_asyncio reports reference leak

2017-05-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 7c278a5eeb656c2b48a85bbd761ce165f1751bb6 by Xiang Zhang in branch 'master': bpo-30110: fix resource leak in test_asyncio.test_events (#1413) https://github.com/python/cpython/commit/7c278a5eeb656c2b48a85bbd761ce165f1751bb6 --

[issue30224] remove outdated checks in struct

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue30224] remove outdated checks in struct

2017-05-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 96f502856796f9310fed7161dc540201a4afc1ee by Xiang Zhang in branch 'master': bpo-30224: remove outdated checks in struct (#1374) https://github.com/python/cpython/commit/96f502856796f9310fed7161dc540201a4afc1ee --

[issue30350] devguide suggests to use VS 2008 to build Python 2.7, but VS 2008 is no more supported?

2017-05-14 Thread Zachary Ware
Zachary Ware added the comment: > I have a changeset that restores this ability, but would like to know if > that change was intentional, or just missed due to not having any buildbots > covering VS9.0-only builds. It was intentional; it was more effort than I wanted to put in to get newer

[issue29570] Windows Buildbot 2.7 is broken

2017-05-14 Thread Zachary Ware
Zachary Ware added the comment: Thank you Jeremy, we'll call this one closed now. We should open a new issue about the VS9.0 builder failure, which as you say is entirely unrelated. -- resolution: -> fixed stage: -> resolved status: open -> closed

[issue30354] Change data model documentation to zero-argument super()

2017-05-14 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 12b1c180986fc744331b8f30d3d2f49a0fdb43dd by Nick Coghlan (csabella) in branch 'master': bpo-30354: Update data model documentation for super() (GH-1561) https://github.com/python/cpython/commit/12b1c180986fc744331b8f30d3d2f49a0fdb43dd --

[issue30367] Cannot build CPython3.6 with module “testcapimodule” statically

2017-05-14 Thread Nan Zhang
New submission from Nan Zhang: up vote 0 down vote favorite I am trying to build CPython3.6 from GitHub statically with the Documentation below: https://wiki.python.org/moin/BuildStatically Changed *shared* to *static* And only uncommented the module "testcapimodule" in Modules/Setup file:

[issue30350] devguide suggests to use VS 2008 to build Python 2.7, but VS 2008 is no more supported?

2017-05-14 Thread Jeremy Kloth
Jeremy Kloth added the comment: Now that my buildbot is back online, there is one unresolved issue pertaining to using VS9.0 only for building. That is building without Perl. It was a supported feature prior to backporting the MSBuild toolchain. With recent OpenSSL releases, without Perl

[issue29570] Windows Buildbot 2.7 is broken

2017-05-14 Thread Jeremy Kloth
Jeremy Kloth added the comment: All builders have been reset and pass, with the exception of the VS9 one which is a different problem. -- ___ Python tracker

[issue30357] test_thread.test_save_exception_state_on_error(): Unhandled exception in thread: AMD64 Debian root 2.7

2017-05-14 Thread Grzegorz Grzywacz
Changes by Grzegorz Grzywacz : -- pull_requests: +1676 ___ Python tracker ___ ___

[issue30357] test_thread.test_save_exception_state_on_error(): Unhandled exception in thread: AMD64 Debian root 2.7

2017-05-14 Thread Grzegorz Grzywacz
Grzegorz Grzywacz added the comment: Problem is with test test_thread.ThreadRunningTests.test_save_exception_state_on_error when other tests leave threads runnig. test_save_exception_state_on_error relay on thread._get_count(), if this value decrease test assume thread is finished with is

[issue30332] Errors that aren't actually defined are purple in the IDLE

2017-05-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- type: -> behavior versions: +Python 3.6, Python 3.7 -Python 3.4, Python 3.5 ___ Python tracker ___

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2017-05-14 Thread Ulrich Petri
Ulrich Petri added the comment: So this would basically be: with ExitStack() as stack: cm1 = stack.enter_context(a_long_name.with_a_long_method()) cm2 = stack.enter_context(another_long_variable.with_a_long_method()) Seems like a very non-obvious and inelegant solution...

[issue29763] test_site failing on AppVeyor

2017-05-14 Thread Zachary Ware
Zachary Ware added the comment: New changeset d48214f22c84f3d949457c854e263074994b6fa2 by Zachary Ware in branch 'master': bpo-29763: Clean up _pth tests (GH-954) https://github.com/python/cpython/commit/d48214f22c84f3d949457c854e263074994b6fa2 --

[issue29570] Windows Buildbot 2.7 is broken

2017-05-14 Thread Zachary Ware
Zachary Ware added the comment: Jeremy, have you recreated your checkouts since .gitattributes was committed? -- nosy: +jkloth ___ Python tracker ___

[issue30360] getpass.getpass() does not accept stdin from an Expect script

2017-05-14 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- title: getpass.getpass() does not except stdin from an Expect script -> getpass.getpass() does not accept stdin from an Expect script ___ Python tracker

[issue30366] Backport tests for test.support to 2.7

2017-05-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1675 ___ Python tracker ___ ___

[issue30366] Backport tests for test.support to 2.7

2017-05-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Also backported new functions temp_dir() and python_is_optimized(). temp_cwd() now accepts None as a name (means using tempfile.mkdtemp). check_syntax_error() now accepts arguments lineno and offset. -- ___ Python

[issue30366] Backport tests for test.support to 2.7

2017-05-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch backports tests for test.support to 2.7. test_support.py is an old name of test.support, so the test is renamed to test_test_support.py. The patch also backports few useful functions in test.support for which tests are written. --

[issue28686] py.exe ignored PATH when using python3 shebang

2017-05-14 Thread Paul Moore
Paul Moore added the comment: > Since we don't AFAIK have any possibility of mixed virtual environments > ignoring SheBangs should meet the basic requirements of operating inside of a > venv. If you want a script to use the current environment, then #!/usr/bin/env python does that. There's

[issue30365] Backport warnings in ElementTree/cElementTree modules and fix bugs

2017-05-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: getchildren() and getiterator() were deprecated in Python implementation for years (since updating to ElementTree 1.3 in Python 2.7 and 3.2). And they are documented as deprecated. Just C implementation didn't emit warnings. It may be too late to add

[issue30365] Backport warnings in ElementTree/cElementTree modules and fix bugs

2017-05-14 Thread Stefan Behnel
Stefan Behnel added the comment: Looks good to me (didn't test it). Note that getchildren() is not deprecated in lxml because it's actually the fastest way to build a list of the children. It's faster than list(element) because it avoids the Python (C-level) iteration overhead. However, that

[issue30365] Backport warnings in ElementTree/cElementTree modules and fix bugs

2017-05-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1674 ___ Python tracker ___ ___

[issue30365] Backport warnings in ElementTree/cElementTree modules and fix bugs

2017-05-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch add warnings in ElementTree and cElementTree modules (backports issue29204) when run Python with the -3 option and fixes several bugs in the etree package and its tests: The deprecation warning about the doctype() method was emitted when

[issue30358] Profile documentation - include sort argument for runctx

2017-05-14 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker

[issue30358] Profile documentation - include sort argument for runctx

2017-05-14 Thread Berker Peksag
Berker Peksag added the comment: New changeset f3291eeb90da2ddb37efea30dfc9406983b0f681 by Berker Peksag in branch '3.5': bpo-30358: Document sort argument of profile.runctx() (GH-1566) https://github.com/python/cpython/commit/f3291eeb90da2ddb37efea30dfc9406983b0f681 --

[issue30358] Profile documentation - include sort argument for runctx

2017-05-14 Thread Berker Peksag
Berker Peksag added the comment: New changeset 61b6e5cf929a80bb44500fb1a212facf66d7f45c by Berker Peksag in branch '3.6': bpo-30358: Document sort argument of profile.runctx() (GH-1566) https://github.com/python/cpython/commit/61b6e5cf929a80bb44500fb1a212facf66d7f45c --

[issue30360] getpass.getpass() does not except stdin from an Expect script

2017-05-14 Thread brent saner
brent saner added the comment: i have found a workaround- it seems that if i add a "sleep 2" in the expect script before and after the getpass() entry prompt points, it works. which doesn't make sense to me, considering the getpass() prompt seems to take just as long as the other prompts to

[issue30358] Profile documentation - include sort argument for runctx

2017-05-14 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +1673 ___ Python tracker ___ ___

[issue30358] Profile documentation - include sort argument for runctx

2017-05-14 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +1672 ___ Python tracker ___ ___

[issue30364] Outdated function attribute to disable address sanitizer

2017-05-14 Thread Xiang Zhang
New submission from Xiang Zhang: In obmalloc, __attribute__((no_address_safety_analysis)) is used to disable address sanitizer. But this attribute is now deprecated in both clang and GCC. Related links:

[issue30362] Launcher add list and list with paths options

2017-05-14 Thread Steve Barnes
Changes by Steve Barnes : -- pull_requests: +1671 ___ Python tracker ___ ___

[issue30361] Docs example: converting mixed types to floating point

2017-05-14 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- assignee: docs@python -> Mariatta nosy: +Mariatta priority: normal -> low ___ Python tracker

[issue28686] py.exe ignored PATH when using python3 shebang

2017-05-14 Thread Vinay Sajip
Vinay Sajip added the comment: > If the user is operating in a virtual environment they are ring fenced and, > presumably, don't wish any other versions of python to be used I'm not sure that's true. I have a number of tools which rely on specific libraries and so I have created venvs for

[issue28595] shlex.shlex should not augment wordchars

2017-05-14 Thread Vinay Sajip
Vinay Sajip added the comment: > Do I need to create a pull request for this? Yes, creating a PR is part of the current workflow since we moved to GitHub. Though that's not the reason why it's not been progressed - on my part, at least, it's due to not having had time to think through the

[issue30363] Backport warnings in the re module to 2.7

2017-05-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1670 ___ Python tracker ___ ___

[issue30363] Backport warnings in the re module to 2.7

2017-05-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The life of 2.7 is so long that our common practice of releasing one or two versions with warnings before removing a feature or changing the behavior in incompatible way doesn't work. People that will start porting to Python 3 in 2020 will be surprised.

[issue26467] Add async magic method support to unittest.mock.Mock

2017-05-14 Thread Michał Bultrowicz
Michał Bultrowicz added the comment: I guess that it's worth noting that the same problem is being talked about in an issue on the asynctest library: https://github.com/Martiusweb/asynctest/issues/29 -- nosy: +butla ___ Python tracker

[issue30357] test_thread.test_save_exception_state_on_error(): Unhandled exception in thread: AMD64 Debian root 2.7

2017-05-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I just encountered with this failure. It is random, I can reproduce it only when run test_thread repeatedly in parallel with running other tests (maybe needed high load factor). $ ./python -m test -uall -F test_thread test_thread test_thread test_thread

[issue30362] Launcher add list and list with paths options

2017-05-14 Thread Steve Barnes
New submission from Steve Barnes: Currently the launcher will give an error message if a matching python is not found when using the -x.y-bits notation on the command line however the user has to know which python(s) they have available. When some pythons have been installed all user and some

[issue30361] Docs example: converting mixed types to floating point

2017-05-14 Thread Mihai Borobocea
New submission from Mihai Borobocea: Section 3.1.1 in the Docs states: "operators with mixed type operands convert the integer operand to floating point" https://docs.python.org/3/tutorial/introduction.html But gives an example using the division operator: >>> 3 * 3.75 / 1.5 7.5 >>> 7.0 / 2

[issue28686] py.exe ignored PATH when using python3 shebang

2017-05-14 Thread Steve Barnes
Steve Barnes added the comment: If the user is operating in a virtual environment they are ring fenced and, presumably, don't wish any other versions of python to be used, (regardless of the SheBang in the files). Since we don't AFAIK have any possibility of mixed virtual environments

[issue30358] Profile documentation - include sort argument for runctx

2017-05-14 Thread Berker Peksag
Changes by Berker Peksag : -- stage: patch review -> backport needed ___ Python tracker ___

[issue30358] Profile documentation - include sort argument for runctx

2017-05-14 Thread Berker Peksag
Berker Peksag added the comment: New changeset 99776296230ddd8429ebad2d07854b8c27ea10ab by Berker Peksag (csabella) in branch 'master': bpo-30358: Document sort argument of profile.runctx() (GH-1566) https://github.com/python/cpython/commit/99776296230ddd8429ebad2d07854b8c27ea10ab --

[issue30340] Optimize out non-capturing groups

2017-05-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30299] Display the bytecode when compiled a regular expression in debug mode

2017-05-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30358] Profile documentation - include sort argument for runctx

2017-05-14 Thread Berker Peksag
New submission from Berker Peksag: For future reference, this was also reported by Chris Cummins on docs@p.o at https://mail.python.org/pipermail/docs/2017-May/031420.html -- nosy: +berker.peksag stage: -> patch review versions: +Python 3.5, Python 3.6

[issue29895] Distutils blows up with an incorrect pypirc, should be caught

2017-05-14 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, Tommy. I think the configparser exception is pretty descriptive here. You had a .pypirc file like the following: [distutils] index-servers = pypi global [pypi] username:spam password:eggs You passed -r

[issue30299] Display the bytecode when compiled a regular expression in debug mode

2017-05-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4ab6abfca4d6e444cca04821b24701cde6993f4e by Serhiy Storchaka in branch 'master': bpo-30299: Display a bytecode when compile a regex in debug mode. (#1491) https://github.com/python/cpython/commit/4ab6abfca4d6e444cca04821b24701cde6993f4e

[issue29877] compileall hangs when accessing urandom even if number of workers is 1

2017-05-14 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +Claudiu.Popa, brett.cannon ___ Python tracker ___