[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-18 Thread Rudi Grams
Rudi Grams added the comment: changing lines 594 and 623 in webbrowser.py (python 2.7.13) to avoid the broken 'open location' seems to solve the problem in idle . script = 'do shell script "open %s"' % url.replace('"', '%22') -- nosy: +Rudi Grams

[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2017-05-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9503dd1e1865bb873a1f72f63ae384bba8462c5e by Victor Stinner in branch '3.5': bpo-27103: regrtest disables -W if -R is used (#1660) https://github.com/python/cpython/commit/9503dd1e1865bb873a1f72f63ae384bba8462c5e --

[issue30402] Unexpected and/or inconsistent del behavior

2017-05-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, this is just how expression lists work. See Grammar/Grammar at https://hg.python.org/cpython/file/tip/Grammar/Grammar This is really no different than: for [k] is s: ... or: [k, j] = s > Why not set literals Because sets are unordered and

[issue30149] inspect.signature() doesn't support partialmethod without explicit self parameter

2017-05-18 Thread Dong-hee Na
Changes by Dong-hee Na : -- pull_requests: +1758 ___ Python tracker ___ ___

[issue30149] inspect.signature() doesn't support partialmethod without explicit self parameter

2017-05-18 Thread Dong-hee Na
Changes by Dong-hee Na : -- pull_requests: +1757 ___ Python tracker ___ ___

[issue28053] parameterize what serialization is used in multiprocessing

2017-05-18 Thread Davin Potts
Davin Potts added the comment: Docs need updating still. -- versions: +Python 3.7 ___ Python tracker ___ ___

[issue26434] multiprocessing cannot spawn grandchild from a Windows service

2017-05-18 Thread Davin Potts
Davin Potts added the comment: Patch committed in 2.7 branch. Thanks for your help, Marc. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue26434] multiprocessing cannot spawn grandchild from a Windows service

2017-05-18 Thread Davin Potts
Davin Potts added the comment: New changeset c47c315812b1fa9acb16510a7aa3b37d113def48 by Davin Potts (Marc Schlaich) in branch '2.7': bpo-26434: Fix multiprocessing grandchilds in a Windows service (GH-1167) https://github.com/python/cpython/commit/c47c315812b1fa9acb16510a7aa3b37d113def48

[issue28087] macOS 12 poll syscall returns prematurely

2017-05-18 Thread Ned Deily
Ned Deily added the comment: If the problem is fixed in 10.12.2, I agree with gps that there is no need to add a workaround for 10.12.0 and .1. We should only ever need to support the most recent macOS point release; it is the user's responsibility to keep up-to-date and with most users

[issue30000] Inconsistency in the zlib module

2017-05-18 Thread Ellison Marks
Ellison Marks added the comment: Erm, is there anyone else we should poke for their opinion then? -- ___ Python tracker ___

[issue30386] Add a build infrastructure for Android

2017-05-18 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___

[issue30401] Remove the .bzrignore file

2017-05-18 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +1756 ___ Python tracker ___ ___

[issue30402] Unexpected and/or inconsistent del behavior

2017-05-18 Thread Dan Snider
New submission from Dan Snider: k = 'k' del [k] That deletes the variable k from the local scope (even though it *looks* like it's trying to delete a list containing 1 element which is equivalent to the variable k). But if using list literals to delete groups of objects is valid, then why

[issue18943] argparse: default args in mutually exclusive groups

2017-05-18 Thread Armin Rigo
Changes by Armin Rigo : -- nosy: -arigo ___ Python tracker ___ ___

[issue30401] Remove the .bzrignore file

2017-05-18 Thread Stéphane Wirtel
New submission from Stéphane Wirtel: Maybe we could remove the .bzrignore file, I don't think we would continue to support a mirror of the repository for Bazaar. -- messages: 293941 nosy: matrixise priority: normal severity: normal status: open title: Remove the .bzrignore file

[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2017-05-18 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1755 ___ Python tracker ___ ___

[issue30400] Race condition in shutil.copyfile()

2017-05-18 Thread Preston Moore
Preston Moore added the comment: It looks like the PR is not passing 3 tests. I think this might be a result of the mock file objects not having inode numbers? Any feedback on this front? -- ___ Python tracker

[issue30400] Race condition in shutil.copyfile()

2017-05-18 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1753 ___ Python tracker ___

[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2017-05-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2773add19aff873377d81e3bb6ab8aa942756f5a by Victor Stinner in branch '3.6': bpo-27103: regrtest disables -W if -R is used (#1651) (#1656) https://github.com/python/cpython/commit/2773add19aff873377d81e3bb6ab8aa942756f5a --

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

2017-05-18 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue30400] Race condition in shutil.copyfile()

2017-05-18 Thread Preston Moore
New submission from Preston Moore: A race condition exists in shutil.copyfile() that allows the file being copied to be replaced between the time it was initially checked with stat() in this function and when it is actually open()'d and copied. This issue can be triggered from shutil.move()

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

2017-05-18 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1752 ___ Python tracker ___

[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2017-05-18 Thread STINNER Victor
STINNER Victor added the comment: It seems like Python 2.7 is not affected. I will apply my workaround to 3.5, 3.6 and master, since Zachary created a buildbot testing 2.7, 3.5, 3.6 and master branches. -- nosy: +zach.ware versions: +Python 3.5, Python 3.7

[issue27945] Various segfaults with dict

2017-05-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1751 ___ Python tracker ___ ___

[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2017-05-18 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1750 ___ Python tracker ___ ___

[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2017-05-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset fcdd9b6b7e73427ce5aa63cf095312f603c4edce by Victor Stinner in branch 'master': bpo-27103: regrtest disables -W if -R is used (#1651) https://github.com/python/cpython/commit/fcdd9b6b7e73427ce5aa63cf095312f603c4edce --

[issue28647] python --help: -u is misdocumented as binary mode

2017-05-18 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +1749 ___ Python tracker ___ ___

[issue8450] httplib: false BadStatusLine() raised

2017-05-18 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1748 ___ Python tracker ___

[issue30296] Remove unnecessary tuples, lists, sets, and dicts from Lib

2017-05-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I made a note of the idlelib.multicall changes for when I review the module to modernize and test. -- ___ Python tracker

[issue30388] ndbm can't iterate through values on OS X

2017-05-18 Thread Forest Gregg
Forest Gregg added the comment: The ndbm db's two files (in the attachment) have the following size tmp___otctx 0 bytes tmp___otctx.db 12857344 bytes -- ___ Python tracker

[issue29948] DeprecationWarning when parse ElementTree with a doctype in 2.7

2017-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed in issue30365. -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed superseder: -> Backport warnings in ElementTree/cElementTree modules and fix bugs ___ Python tracker

[issue19569] Use __attribute__((deprecated)) to warn usage of deprecated functions and macros

2017-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not have the possibility to test on Windows. Maybe someone wants to test Arfrever's suggestion. -- assignee: serhiy.storchaka -> ___ Python tracker

[issue25794] __setattr__ does not always overload operators

2017-05-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1747 ___ Python tracker ___ ___

[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2017-05-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue27103] regrtest: capture stdout (-W) option is incompatible with refleak hunter (-R)

2017-05-18 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1746 ___ Python tracker ___ ___

[issue18943] argparse: default args in mutually exclusive groups

2017-05-18 Thread paul j3
paul j3 added the comment: I haven't downloaded the development distribution to this computer, so can't write formal patches at this time. -- ___ Python tracker

[issue30351] regrtest hangs on x86 Windows XP 2.7

2017-05-18 Thread STINNER Victor
STINNER Victor added the comment: Another one on AMD64 Windows7 SP1 2.7: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%202.7/builds/92/steps/test/logs/stdio ... 0:03:30 [377/403] test_code passed 0:03:30 [378/403] test_wait4 skipped -- running: test_mmap (30 sec) test_wait4

[issue27585] asyncio.Lock deadlock after cancellation

2017-05-18 Thread Guido van Rossum
Guido van Rossum added the comment: I'm really sorry, but I personally don't have time to look into this. If you have a fix in mind you can send a PR to GitHub mentioning bpi-27585. -- ___ Python tracker

[issue30399] Get rid of trailing comma if the repr() of BaseException

2017-05-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1745 ___ Python tracker ___ ___

[issue30399] Get rid of trailing comma if the repr() of BaseException

2017-05-18 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The repr() of BaseException (and all exceptions that don't override __repr__) with a single argument contains a redundant trailing comma: >>> BaseException('spam') BaseException('spam',) This is just an artefact of the implementation. Proposed patch

[issue29960] _random.Random state corrupted on exception

2017-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Mariatta, can you update your PRs? -- ___ Python tracker ___ ___

[issue29094] Regression in zipfile writing in 2.7.13

2017-05-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker

[issue30296] Remove unnecessary tuples, lists, sets, and dicts from Lib

2017-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, the PR was merged while I made a review. tuple([i for i in a]) is 2 times faster than tuple(i for i in a). Since there is no significant difference in readability I would keep the variant with a list comprehension if it is initial. --

[issue27585] asyncio.Lock deadlock after cancellation

2017-05-18 Thread Alexey Popravka
Alexey Popravka added the comment: Also there is the same problem with asyncio.Condition wait() / notify() couple as it repeats the same Lock.acquire()/release() logic -- ___ Python tracker

[issue30395] deadlocked child process after forking on pystate.c's head_mutex

2017-05-18 Thread Piotr Wysocki
Changes by Piotr Wysocki : -- nosy: +Piotr Wysocki ___ Python tracker ___ ___

[issue29619] st_ino (unsigned long long) is casted to long long in posixmodule.c:_pystat_fromstructstat

2017-05-18 Thread STINNER Victor
STINNER Victor added the comment: Please propose the change as a PR. -- ___ Python tracker ___ ___

[issue30296] Remove unnecessary tuples, lists, sets, and dicts from Lib

2017-05-18 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30296] Remove unnecessary tuples, lists, sets, and dicts from Lib

2017-05-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 3972628de3d569c88451a2a176a1c94d8822b8a6 by Raymond Hettinger (Jon Dufresne) in branch 'master': bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489)

[issue27585] asyncio.Lock deadlock after cancellation

2017-05-18 Thread Alexey Popravka
Alexey Popravka added the comment: Hi guys! Any update on this? I've just hit this issue. Cancelled futures in _waiters is not a problem (any more). There is still a problem when release() wakes up next waiter but task waiting for it gets cancelled and so all the rest waiters are in pending

[issue30353] ctypes: pass by value for structs broken on Cygwin/MinGW 64-bit

2017-05-18 Thread Erik Bray
Erik Bray added the comment: Sure, thanks for pointing that out. -- ___ Python tracker ___ ___

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-05-18 Thread Marcel Plch
Changes by Marcel Plch : -- pull_requests: +1744 ___ Python tracker ___ ___

[issue29619] st_ino (unsigned long long) is casted to long long in posixmodule.c:_pystat_fromstructstat

2017-05-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: > The same kind of fix could also be applied elsewhere in posixmodule.c By also adding a Py_BUILD_ASSERT() statement which is a welcome improvement on the previous code that allowed to pinpoint the problem on Android. --

[issue29619] st_ino (unsigned long long) is casted to long long in posixmodule.c:_pystat_fromstructstat

2017-05-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: With the patch proposed by Victor in msg293873 the cross-compilation of posixmodule.c succeeds on android-21-x86 and android-21-x86_64. Following my suggestion in msg292174, I propose the following patch instead: diff --git a/Modules/posixmodule.c

[issue30375] Correct stacklevel of warnings when compile regular expressions

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

[issue30375] Correct stacklevel of warnings when compile regular expressions

2017-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset dfcfc915787def056e225fb22ad5a5ee8da4052f by Serhiy Storchaka in branch '2.7': [2.7] bpo-30375: Correct the stacklevel of regex compiling warnings. (#1595) (#1648)

[issue30375] Correct stacklevel of warnings when compile regular expressions

2017-05-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1743 ___ Python tracker ___ ___

[issue30397] Expose regular expression and match objects types in the re module

2017-05-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Add a docstring for re.error ___ Python tracker ___

[issue30363] Backport warnings in the re module to 2.7

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

[issue30397] Expose regular expression and match objects types in the re module

2017-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The part with re.error docstring is extracted in separate issue30398. It should be backported. -- ___ Python tracker

[issue30398] Add a docstring for re.error

2017-05-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1742 ___ Python tracker ___ ___

[issue30398] Add a docstring for re.error

2017-05-18 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: re.error doesn't have its own docstring and inherits it from Exception when format pydoc output: "Common base class for all non-exit exceptions." This is wrong of course. Proposed patch adds a docstring for re.error. It overrides Exception docstring and

[issue30363] Backport warnings in the re module to 2.7

2017-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 955b6760cfa73c54bae9b6f2b335eb0cd806c7b0 by Serhiy Storchaka in branch '2.7': [2.7] bpo-30363: Backport warnings in the re module. (#1577) https://github.com/python/cpython/commit/955b6760cfa73c54bae9b6f2b335eb0cd806c7b0 --

[issue30397] Expose regular expression and match objects types in the re module

2017-05-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1741 ___ Python tracker ___ ___

[issue30397] Expose regular expression and match objects types in the re module

2017-05-18 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch adds re.Patter and re.Match types (names are conforming with the typing module) that represent the types of compiled regular expressin objects and match objects. The purpose of this is exposing the documentation of the methods of these

[issue30374] Make win_add2path.py take effect without having to log off

2017-05-18 Thread neeverett
Changes by neeverett : -- pull_requests: +1740 ___ Python tracker ___ ___

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-18 Thread Andrew Jaffe
Andrew Jaffe added the comment: The same behaviour also happens under Apple's system Python 2.7.10. Perhaps this implies a macOS bug or deliberate behaviour change? (I couldn't find anything obviously appropriate in the list of security fixes for 10.12.5.) --

[issue30395] deadlocked child process after forking on pystate.c's head_mutex

2017-05-18 Thread Stephan Gorget
Changes by Stephan Gorget : -- nosy: +phantez ___ Python tracker ___ ___ Python-bugs-list

[issue23749] asyncio missing wrap_socket (starttls)

2017-05-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm very interested in this because, even though we do support STARTTLS in aiosmtpd, it's a hack using non-public symbols, and we have a hidden traceback! (I.e. one that doesn't cause the test suite to fail, but only shows up when clients disconnect.)

[issue30395] deadlocked child process after forking on pystate.c's head_mutex

2017-05-18 Thread David Rothera
Changes by David Rothera : -- nosy: +David Rothera ___ Python tracker ___ ___

[issue23667] IDLE to provide option for making trailing whitespace visible

2017-05-18 Thread Louie Lu
Louie Lu added the comment: terry, these close isn't changing anything. But I'm migrating my GitHub account from old one to new one, thus will close the PR and reopen another one, sorry for annoying mailing. -- ___ Python tracker

[issue23667] IDLE to provide option for making trailing whitespace visible

2017-05-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Louie, when you close and open PRs, please give at least a brief explanation. In particular, how is the new one different? -- assignee: -> terry.reedy ___ Python tracker