[issue30405] build.bat: register binaries for py launcher

2017-05-22 Thread Eryk Sun
Eryk Sun added the comment: Supporting PEP 514 tags is an interesting idea, but maybe you could go into more detail about what you have in mind. Are you thinking of using the SysVersion, SysArchitecture, and [Windowed]ExecutablePath fields where available instead of parsing version tags and as

[issue23894] lib2to3 doesn't recognize rb'...' and f'...' in Python 3.6

2017-05-22 Thread Łukasz Langa
Changes by Łukasz Langa : -- pull_requests: +1820 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29941] Confusion between asserts and Py_DEBUG

2017-05-22 Thread Thomas Wouters
Changes by Thomas Wouters : -- pull_requests: +1821 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue27269] ipaddress: Wrong behavior with ::ffff:1.2.3.4 style IPs

2017-05-22 Thread Alex Perry
Alex Perry added the comment: https://github.com/python/cpython/commit/5cc274262a99e5633177fc540261abbbecbbc51c ... seems to implement the principle in this bug, but I'm not convinced this is a good idea. -- nosy: +arp11 ___ Python tracker

[issue30432] FileInput doesn't accept PathLike objects for file names

2017-05-22 Thread Roy Williams
Changes by Roy Williams : -- pull_requests: +1822 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30432] FileInput doesn't accept PathLike objects for file names

2017-05-22 Thread Roy Williams
Roy Williams added the comment: @arp11 sorry for the too-minimal repro :D - the issue is with FileInput attempting to cast `files` to a tuple. Instead, if passed a PathLike object FileInput should set `files` to a tuple just as it does with a str. -- _

[issue23894] lib2to3 doesn't recognize rb'...' and f'...' in Python 3.6

2017-05-22 Thread Łukasz Langa
Changes by Łukasz Langa : -- pull_requests: +1824 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

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

2017-05-22 Thread Jason Fried
Changes by Jason Fried : -- pull_requests: +1825 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30274] Make importlib.abc.ExtensionFileLoader.__init__() documentation match code

2017-05-22 Thread Sayan Chowdhury
Changes by Sayan Chowdhury : -- pull_requests: +1826 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30435] Documentation either unclear or incorrect on comparisons between bytes and strings in Python 3

2017-05-22 Thread ipatrol
New submission from ipatrol: https://docs.python.org/3/reference/expressions.html#comparisons says that "Strings and binary sequences cannot be directly compared." That would seem to me to imply that an equality between them would raise an exception, as also claimed by https://wiki.python.org/

[issue30435] Documentation either unclear or incorrect on comparisons between bytes and strings in Python 3

2017-05-22 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- versions: -Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue30424] make pydoc-topics fails

2017-05-22 Thread Naomi Ceder
Naomi Ceder added the comment: This issue is related to the version of sphinx. When I tested with sphinx 1.3.6 it worked fine, but with sphinx 1.6.2 I did get the error. -- nosy: +NaomiCeder ___ Python tracker ___

[issue23894] lib2to3 doesn't recognize rb'...' and f'...' in Python 3.6

2017-05-22 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 1398b1bc7d80df5bde17041e7ec0a3bdbf54b19e by Łukasz Langa in branch '3.6': [3.6] Make rb'' strings work in lib2to3 (GH-1724) (#1730) https://github.com/python/cpython/commit/1398b1bc7d80df5bde17041e7ec0a3bdbf54b19e -- _

[issue23894] lib2to3 doesn't recognize rb'...' and f'...' in Python 3.6

2017-05-22 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 1b9530c536664276ce866ae602ce04adce0810e1 by Łukasz Langa in branch 'master': bpo-23894: make lib2to3 recognize f-strings (#1733) https://github.com/python/cpython/commit/1b9530c536664276ce866ae602ce04adce0810e1 --

[issue23894] lib2to3 doesn't recognize rb'...' and f'...' in Python 3.6

2017-05-22 Thread Łukasz Langa
Changes by Łukasz Langa : -- pull_requests: +1827 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30405] build.bat: register binaries for py launcher

2017-05-22 Thread Steve Dower
Steve Dower added the comment: My thinking was basically to use an algorithm like this: if sys.argv[1].startswith('-'): company, _, tag = sys.argv[1][1:].rpartition('\') if company: # look for Tag under Company else: # look for tag under Python

[issue30435] Documentation either unclear or incorrect on comparisons between bytes and strings in Python 3

2017-05-22 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- versions: +Python 2.7, Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue30431] input function truncates prompt by NULL byte

2017-05-22 Thread Kushal Das
Changes by Kushal Das : -- pull_requests: +1828 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue29941] Confusion between asserts and Py_DEBUG

2017-05-22 Thread Thomas Wouters
Changes by Thomas Wouters : -- pull_requests: +1829 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

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

2017-05-22 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset f82c951d1c5416f3550d544e50ff5662d3836e73 by Łukasz Langa (Jason Fried) in branch 'master': bpo-30395 _PyGILState_Reinit deadlock fix (#1734) https://github.com/python/cpython/commit/f82c951d1c5416f3550d544e50ff5662d3836e73 -- nosy: +lukasz

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

2017-05-22 Thread Łukasz Langa
Changes by Łukasz Langa : -- pull_requests: +1830 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue23894] lib2to3 doesn't recognize rb'...' and f'...' in Python 3.6

2017-05-22 Thread Łukasz Langa
Changes by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue27269] ipaddress: Wrong behavior with ::ffff:1.2.3.4 style IPs

2017-05-22 Thread Alex Perry
Changes by Alex Perry : -- pull_requests: +1831 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue28340] [py2] TextIOWrapper.tell extremely slow

2017-05-22 Thread Rob Malouf
Changes by Rob Malouf : -- pull_requests: +1832 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue30427] isinstance checks in os.path.normcase redundant with os.fspath

2017-05-22 Thread Brett Cannon
Brett Cannon added the comment: The problem with leaving os.fspath() out of os.path.normcase() is that suddenly a single function that deals with paths won't work with path-like objects. So that means support for path-like objects won't implicitly work in code that assumes a path but doesn't e

[issue30376] Curses documentation refers to incorrect type

2017-05-22 Thread Kushal Das
Kushal Das added the comment: New changeset 93fc20b73eea3da0b6305aaee951e5dd22d5c408 by Kushal Das (Berker Peksag) in branch 'master': bpo-30376: Update outdated WindowObject references (#1630) https://github.com/python/cpython/commit/93fc20b73eea3da0b6305aaee951e5dd22d5c408 -- nosy:

[issue9883] minidom: AttributeError: DocumentFragment instance has no attribute 'writexml'

2017-05-22 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-22 Thread Brett Cannon
Changes by Brett Cannon : -- pull_requests: +1833 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30202] Update test.test_importlib.test_abc to test find_spec()

2017-05-22 Thread Sayan Chowdhury
Sayan Chowdhury added the comment: I am picking up this issue. -- nosy: +sayanchowdhury ___ Python tracker ___ ___ Python-bugs-list ma

[issue9883] minidom: AttributeError: DocumentFragment instance has no attribute 'writexml'

2017-05-22 Thread Alex Perry
Changes by Alex Perry : -- pull_requests: +1834 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue30376] Curses documentation refers to incorrect type

2017-05-22 Thread Kushal Das
Changes by Kushal Das : -- pull_requests: +1835 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue30376] Curses documentation refers to incorrect type

2017-05-22 Thread Kushal Das
Changes by Kushal Das : -- pull_requests: +1836 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue30436] importlib.find_spec raises AttributeError/ModuleNotFoundError when parent is not a package/module

2017-05-22 Thread tkhyn
New submission from tkhyn: Hello, I stumbled upon this issue when using the module_has_submodule function in Django, which raised an exception when trying to import a dotted path such as ``parent.module`` when ``parent`` does not exist or is not a package. I would expect (as well as the django

[issue30380] Sphinx 1.6.1 raising new warnings in docs build

2017-05-22 Thread Brett Cannon
Brett Cannon added the comment: All branches are now pinned to and working under Sphinx 1.6.1, so I'm closing this as fixed! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker _

[issue21074] Too aggressive constant folding

2017-05-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I do not think quoting the Zen of Python helps anything. Instead of practicality-beats-purity, the better aphorism is perfect-is-the-enemy-of-good. > The Code of Conduct which governs comments here requests > that we be considerate and respective The ter

[issue30293] Peephole binops folding can lead to memory and bytecache ballooning

2017-05-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: -rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue21074] Too aggressive constant folding

2017-05-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: -rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29102] Add an id field to PyInterpreterState.

2017-05-22 Thread Eric Snow
Eric Snow added the comment: New changeset e377416c10eb0bf055b0728cdcdc4488fdfd3b5f by Eric Snow in branch 'master': bpo-29102: Add a unique ID to PyInterpreterState. (#1639) https://github.com/python/cpython/commit/e377416c10eb0bf055b0728cdcdc4488fdfd3b5f --

[issue30426] why not use the same style func name. eg: int.to_bytes (with underline) and array.tobytes(without underline).

2017-05-22 Thread zaazbb
zaazbb added the comment: how about add a unitive style function name, for a compatibility reason, keep the old function exists also. for example, add int.tobytes(), and keep int.to_bytes() exists. -- ___ Python tracker

[issue30426] why not use the same style func name. eg: int.to_bytes (with underline) and array.tobytes(without underline).

2017-05-22 Thread Eric V. Smith
Eric V. Smith added the comment: We won't do that, because then we'd have two functions that do the same thing. There's no sense having to learn two functions, just to achieve consistency. Sorry. -- ___ Python tracker

[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2017-05-22 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset f9169ce6b48c7cc7cc62d9eb5e4ee1ac7066d14b by Nick Coghlan (Thomas Kluyver) in branch 'master': bpo-25532: Protect against infinite loops in inspect.unwrap() (#1717) https://github.com/python/cpython/commit/f9169ce6b48c7cc7cc62d9eb5e4ee1ac7066d14b -

[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2017-05-22 Thread Nick Coghlan
Changes by Nick Coghlan : -- stage: needs patch -> backport needed versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list m

[issue30437] SSL_shutdown can return meaningless SSL_ERROR_SYSCALL

2017-05-22 Thread Nathaniel Smith
New submission from Nathaniel Smith: The SSL_shutdown man page says that if it returns 0, and an SSL_ERROR_SYSCALL is set, then SSL_ERROR_SYSCALL should be ignored - or at least I think that's what it's trying to say. See the RETURN VALUES section. I think this means we should only raise this

[issue30438] tarfile would fail to extract tarballs with files under R/O directories

2017-05-22 Thread Yaroslav Halchenko
New submission from Yaroslav Halchenko: If tarfile contains a file under a directory which has no write permission, extractall would fail since chmod'ing of the directory is done right when it is "extracted". Please find attached a quick&dummy script to demonstrate the problem using Python co

[issue9883] minidom: AttributeError: DocumentFragment instance has no attribute 'writexml'

2017-05-22 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: I agree that writexml should be available for document fragments. I doubt the additional level of indentation should be added, as you've included in point 2. -- nosy: +fdrake ___ Python tracker

[issue29102] Add an id field to PyInterpreterState.

2017-05-22 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-22 Thread Eric Snow
Eric Snow added the comment: New changeset 6b4be195cd8868b76eb6fbe166acc39beee8ce36 by Eric Snow in branch 'master': bpo-22257: Small changes for PEP 432. (#1728) https://github.com/python/cpython/commit/6b4be195cd8868b76eb6fbe166acc39beee8ce36 --

[issue30405] build.bat: register binaries for py launcher

2017-05-22 Thread Eryk Sun
Eryk Sun added the comment: The existing code can be adapted to generalize support for version-number tags, i.e. X.Y[-32|-64]. locate_all_pythons() would need to search every company key to add executable installations that use version-number tags to the installed_pythons array. Whether a tag

[issue21056] csv documentation is incorrect

2017-05-22 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset d618c8c6d31b9b288f8a070417683974eb98e3ba by Mariatta (Amit Kumar) in branch 'master': bpo-21056: Document return type of next method of csv reader (#146) https://github.com/python/cpython/commit/d618c8c6d31b9b288f8a070417683974eb98e3ba

[issue21056] csv documentation is incorrect

2017-05-22 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: needs patch -> backport needed versions: +Python 3.7 -Python 2.7 ___ Python tracker ___ ___ Pyt

[issue21056] csv documentation is incorrect

2017-05-22 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1837 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue21056] csv documentation is incorrect

2017-05-22 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1838 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue23894] lib2to3 doesn't recognize rb'...' and f'...' in Python 3.6

2017-05-22 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e8412e684ed741df246e8430f4911b31b0d8be1f by Łukasz Langa in branch '3.6': [3.6] bpo-23894: make lib2to3 recognize f-strings (GH-1733) (#1737) https://github.com/python/cpython/commit/e8412e684ed741df246e8430f4911b31b0d8be1f -- ___

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

2017-05-22 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset d29feccec3ce3dcd9ab3100f8956171c70ec3027 by Łukasz Langa in branch '3.6': [3.6] bpo-30395 _PyGILState_Reinit deadlock fix (GH-1734) (#1740) https://github.com/python/cpython/commit/d29feccec3ce3dcd9ab3100f8956171c70ec3027 -- _

[issue30439] Expose the subinterpreters C-API in the stdlib.

2017-05-22 Thread Eric Snow
New submission from Eric Snow: For a variety of reasons, I'd like to be able to manage subinterpreters from Python code. An initial effort would add a _interpreters module to the stdlib that exposes the basic functionality of the corresponding C-API. -- assignee: eric.snow components:

[issue30432] FileInput doesn't accept PathLike objects for file names

2017-05-22 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 002665a9da3a2924c4a08511ede62ff4d1dabc48 by Łukasz Langa (Roy Williams) in branch 'master': bpo-30432: FileInput doesn't accept PathLike objects for file names (#1732) https://github.com/python/cpython/commit/002665a9da3a2924c4a08511ede62ff4d1dabc48

[issue30439] Expose the subinterpreters C-API in the stdlib.

2017-05-22 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +1839 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue30435] Documentation either unclear or incorrect on comparisons between bytes and strings in Python 3

2017-05-22 Thread Eryk Sun
Eryk Sun added the comment: How about "cannot be compared by value" or "cannot be ordered by value"? Emphasizing the value aspect doesn't conflict with the default equality comparison by identity. Note that starting Python with the -b option causes the bytes type to raise a warning in this ca

[issue21056] csv documentation is incorrect

2017-05-22 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 6ef0882303cff24c58785bb1082250088266886d by Łukasz Langa (Mariatta) in branch '3.6': [3.6] bpo-21056: Document return type of next method of csv reader (GH-146) (#1749) https://github.com/python/cpython/commit/6ef0882303cff24c58785bb108225008826688

[issue21056] csv documentation is incorrect

2017-05-22 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 32dcf426ad2ae10e24e92f60e99dbb4939fb2021 by Łukasz Langa (Mariatta) in branch '3.5': [3.5] bpo-21056: Document return type of next method of csv reader (GH-146) (#1750) https://github.com/python/cpython/commit/32dcf426ad2ae10e24e92f60e99dbb4939fb20

[issue30423] [asyncio] orphan future close loop and cause "RuntimeError: Event loop stopped before Future completed."

2017-05-22 Thread Łukasz Langa
Changes by Łukasz Langa : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why Lib/test/coding20731.py was changed? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Pyt

[issue24899] Add an os.path <=> pathlib equivalence table in pathlib docs

2017-05-22 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1840 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30432] FileInput doesn't accept PathLike objects for file names

2017-05-22 Thread Łukasz Langa
Changes by Łukasz Langa : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-l

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review type: -> enhancement versions: +Python 3.7 -Python 3.5 ___ Python tracker ___ __

[issue30429] bdb and pdb: Add watchpoint function

2017-05-22 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1841 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue30429] bdb and pdb: Add watchpoint function

2017-05-22 Thread Louie Lu
Louie Lu added the comment: watch and awatch will detect value change and breakout, rwatch using dis module to get the file bytecode, with the lineno it can detect current line is load (read) or not. -- ___ Python tracker

[issue21074] Too aggressive constant folding

2017-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See the patch in issue30416. I'm not sure these checks should be added to the peephole optimizer, but this isn't very difficult. -- nosy: +serhiy.storchaka ___ Python tracker __

[issue29102] Add an id field to PyInterpreterState.

2017-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This change added a compiler warning. ./Programs/_testembed.c: In function ‘print_subinterp’: ./Programs/_testembed.c:31:22: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int64_t {aka long long int}’ [-Wformat=]

[issue30423] [asyncio] orphan future close loop and cause "RuntimeError: Event loop stopped before Future completed."

2017-05-22 Thread Łukasz Langa
Changes by Łukasz Langa : -- pull_requests: +1842 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30435] Documentation either unclear or incorrect on comparisons between bytes and strings in Python 3

2017-05-22 Thread Martin Panter
Martin Panter added the comment: Also, “-bb” turns it into an exception, and the same applies to bytes vs int: >>> b"a" == "a" Traceback (most recent call last): File "", line 1, in BytesWarning: Comparison between bytes and string >>> b"a" == 0x61 Traceback (most recent call last): File ""

[issue29335] subprocess module does not check WIFSTOPPED on SIGCHLD

2017-05-22 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- pull_requests: +1843 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30423] [asyncio] orphan future close loop and cause "RuntimeError: Event loop stopped before Future completed."

2017-05-22 Thread Łukasz Langa
Changes by Łukasz Langa : -- pull_requests: +1844 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29321] Wrong documentation (Language Ref) for unicode and str comparison

2017-05-22 Thread Martin Panter
Martin Panter added the comment: I backported Issue 12067 documentation, so hopefully this is fixed. -- resolution: -> out of date stage: -> resolved status: open -> closed superseder: -> Doc: remove errors about mixed-type comparisons. ___ Python

[issue30431] input function truncates prompt by NULL byte

2017-05-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka stage: -> patch review versions: -Python 3.3, Python 3.4, Python 3.5 ___ Python tracker ___ ___

<    1   2