[issue29894] Deprecate returning a subclass of complex from __complex__

2017-03-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: This is similar to issue26983, but complex() always returned exact complex. A deprecation warning is added just for uniformity with __float__ and __int__. -- components: Interpreter Core messages: 290080 nosy: mark.dickinson, serhiy.storchaka

[issue29894] Deprecate returning a subclass of complex from __complex__

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- type: behavior -> enhancement ___ Python tracker ___

[issue29894] Deprecate returning a subclass of complex from __complex__

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +701 ___ Python tracker ___ ___

[issue27425] Tests fail because of git's newline preferences on Windows

2017-03-24 Thread STINNER Victor
STINNER Victor added the comment: In the master branch, .gitattributes now contains: --- *.pck binary Lib/test/cjkencodings/* binary Lib/test/decimaltestdata/*.decTest binary Lib/test/sndhdrdata/sndhdr.* binary Lib/test/test_email/data/msg_26.txt binary Lib/test/xmltestdata/* binary

[issue19930] os.makedirs('dir1/dir2', 0) always fails

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +702 ___ Python tracker ___ ___

[issue29884] faulthandler does not properly restore sigaltstack during teardown

2017-03-24 Thread Christophe Zeitouny
Changes by Christophe Zeitouny : -- pull_requests: +704 ___ Python tracker ___ ___

[issue29649] struct.pack_into check boundary error message ignores offset

2017-03-24 Thread Andrew Nester
Andrew Nester added the comment: any updates on this issue? looks like PR is ready to go -- ___ Python tracker ___

[issue19930] os.makedirs('dir1/dir2', 0) always fails

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e304e33c16e060932d1e2cc8a030d42b02b429b5 by Serhiy Storchaka in branch 'master': bpo-19930: The mode argument of os.makedirs() no longer affects the file (#799) https://github.com/python/cpython/commit/e304e33c16e060932d1e2cc8a030d42b02b429b5

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-03-24 Thread Andrew Nester
Andrew Nester added the comment: any updates? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-03-24 Thread Andrew Nester
Andrew Nester added the comment: any updates? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29861] multiprocessing Pool keeps objects (tasks, args, results) alive too long

2017-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 8988945cdc27ffa86ba8c624e095b51c459f5154 by Antoine Pitrou in branch 'master': bpo-29861: release references to multiprocessing Pool tasks (#743) https://github.com/python/cpython/commit/8988945cdc27ffa86ba8c624e095b51c459f5154 --

[issue29861] multiprocessing Pool keeps objects (tasks, args, results) alive too long

2017-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset cc3331fec8b7a61c3f06c097eac85bfa38490758 by Antoine Pitrou in branch '3.6': bpo-29861: release references to multiprocessing Pool tasks (#743) (#800) https://github.com/python/cpython/commit/cc3331fec8b7a61c3f06c097eac85bfa38490758 --

[issue29884] faulthandler does not properly restore sigaltstack during teardown

2017-03-24 Thread Christophe Zeitouny
Changes by Christophe Zeitouny : -- pull_requests: +703 ___ Python tracker ___ ___

[issue19930] os.makedirs('dir1/dir2', 0) always fails

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker

[issue29694] race condition in pathlib mkdir with flags parents=True

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can you provide tests? -- nosy: +serhiy.storchaka stage: patch review -> test needed ___ Python tracker ___

[issue29861] multiprocessing Pool keeps objects (tasks, args, results) alive too long

2017-03-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +706 ___ Python tracker ___ ___

[issue22319] mailbox.MH chokes on directories without .mh_sequences

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +709 ___ Python tracker ___ ___

[issue18713] Clearly document the use of PYTHONIOENCODING to set surrogateescape

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> duplicate status: open -> pending superseder: -> The documentation for the print function should explain/point to how to control the sys.stdout encoding ___ Python

[issue29892] change statement for open() is splited into two part in middle of sentence.

2017-03-24 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- assignee: docs@python -> Mariatta nosy: +Mariatta ___ Python tracker ___

[issue29884] faulthandler does not properly restore sigaltstack during teardown

2017-03-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: PR was merged and backported into 3.5 and 3.6, so I'm closing this. Thanks, Christophe :) -- nosy: +Mariatta resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.5, Python 3.6, Python 3.7

[issue1117601] os.path.exists returns false negatives in MAC environments.

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue28331] "CPython implementation detail:" removed when content translated

2017-03-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 906118d8c68160ed4a3d15cec803d1ee57836517 by INADA Naoki in branch '3.6': bpo-28331: fix impl-detail label is removed when content is translated. (GH-769) https://github.com/python/cpython/commit/906118d8c68160ed4a3d15cec803d1ee57836517 --

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +710 ___ Python tracker ___ ___

[issue29888] The link referring to "Python download page" is broken

2017-03-24 Thread Ned Deily
Ned Deily added the comment: Thanks for noticing this. The change in URLs was due to the introduction of the "new" python.org website a few years ago; the canonical form of the URL for releases introduced after the move to the new web site is indeed

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset af7b9ec5c855366feef4c67dc492d64b3baf84ca by Serhiy Storchaka in branch 'master': bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) (#805) https://github.com/python/cpython/commit/af7b9ec5c855366feef4c67dc492d64b3baf84ca

[issue29862] Fix grammar typo in importlib.reload() exception

2017-03-24 Thread Brett Cannon
Brett Cannon added the comment: Go for it, Mandeep! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6532] thread.get_ident() should return unsigned value

2017-03-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset aefa7ebf0ff0f73feee7ab24f4cdcb2014d83ee5 by Victor Stinner (Serhiy Storchaka) in branch 'master': bpo-6532: Make the thread id an unsigned integer. (#781) https://github.com/python/cpython/commit/aefa7ebf0ff0f73feee7ab24f4cdcb2014d83ee5

[issue29694] race condition in pathlib mkdir with flags parents=True

2017-03-24 Thread Armin Rigo
Armin Rigo added the comment: It's a mess to write a test, because the exact semantics of .mkdir() are not defined as far as I can tell. This patch is a best-effort attempt at making .mkdir() work in the presence of common parallel filesystem changes, that is, other processes that would

[issue10631] ZipFile and current directory change

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- priority: normal -> low versions: -Python 3.3, Python 3.4 ___ Python tracker ___

[issue29728] Expose TCP_NOTSENT_LOWAT

2017-03-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 1e2147b9d75a64df370a9393c2b5b9d170dc0afd by Mariatta (Nathaniel J. Smith) in branch 'master': bpo-29728: Provide socket.TCP_NOTSENT_LOWAT (#477) https://github.com/python/cpython/commit/1e2147b9d75a64df370a9393c2b5b9d170dc0afd --

[issue22744] os.mkdir on Windows silently strips trailing blanks from directory names

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue22319] mailbox.MH chokes on directories without .mh_sequences

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I consider this issue as a new feature. PR 804 makes get_sequences() and set_sequences() working when the ".mh_sequences" file does not exist. The open question is what to do with lock(). Currently it fails if the ".mh_sequences" file does not exist. Is it

[issue29892] change statement for open() is splited into two part in middle of sentence.

2017-03-24 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> patch review versions: +Python 3.7 ___ Python tracker ___

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can't test on Windows and OSX but I suppose PR 805 fixes both issues. -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> patch review versions: +Python 3.7 ___ Python tracker

[issue29738] Fix memory leak in SSLSocket.getpeercert()

2017-03-24 Thread Olivier Vielpeau
Olivier Vielpeau added the comment: I've attached the PR on Github and signed the CLA, is there anything else needed from me to get this reviewed? Thanks! -- ___ Python tracker

[issue29888] The link referring to "Python download page" is broken

2017-03-24 Thread Kinebuchi Tomohiko
Kinebuchi Tomohiko added the comment: According to the table on the Downloads page [1]_, relations between Python versions and version specific release pages are listed as follows: 2.7.0 -> https://www.python.org/download/releases/2.7/ 2.7.1 ->

[issue17651] Errno checking replaced by concrete classes inherited from OSError

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___

[issue27425] Tests fail because of git's newline preferences on Windows

2017-03-24 Thread Steve Dower
Steve Dower added the comment: More likely it needs a fresh clone to fix up those files, unless they've changed since the attributes file was added. -- ___ Python tracker

[issue6532] thread.get_ident() should return unsigned value

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 -Python 3.5 ___ Python tracker

[issue29894] Deprecate returning a subclass of complex from __complex__

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 671079ef6063fe227460a6c3114625fb6282bbd0 by Serhiy Storchaka in branch 'master': bpo-29894: Deprecate returning an instance of complex subclass from __complex__. (#798)

[issue29849] fix memory leak in import_from

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 4830f581af57dd305c02c1fd72299ecb5b090eca by Xiang Zhang in branch 'master': bpo-29849: fix a memory leak in import_from (GH-712) https://github.com/python/cpython/commit/4830f581af57dd305c02c1fd72299ecb5b090eca --

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-03-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Deleting non-existent files in /tmp is an indicator > of a security hole. Christian, what is your take on this? -- nosy: +christian.heimes, rhettinger ___ Python tracker

[issue29897] itertools.chain behaves strangly when copied with copy.copy

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: chain(x) is a shortcut for chain.from_iterable(iter(x)). Neither copy.copy() nor __reduce__ don't have particular relation to this. Consider following example: >>> from itertools import chain >>> i = iter([[1, 2, 3], [4, 5, 6]]) >>> a =

[issue29839] Avoid raising OverflowError in len() when __len__() returns negative large value

2017-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://docs.python.org/3/library/functions.html#len * does not specify the exception. In such cases, we occasionally change exception in x.y.0 releases without prior notice other than News and What's New. Also, I think unnecessarily exposing a

[issue28810] Document bytecode changes in 3.6

2017-03-24 Thread Brett Cannon
Brett Cannon added the comment: New changeset 8f9e1bbf2dbdf46a0bf920279568a31460043376 by Brett Cannon (Ivan Levkivskyi) in branch 'master': bpo-28810: Document remaining bytecode changes in 3.6 (GH-651) https://github.com/python/cpython/commit/8f9e1bbf2dbdf46a0bf920279568a31460043376

[issue29838] Check that sq_length and mq_length return non-negative result

2017-03-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please don't add more code to critical paths. There is no demonstrated need for an additional check here. The current code has worked well for millions of users for many years. Also, there are too many checks in common paths and some of them are

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8c8785b2f8e4048cef350f89c686266f4519b67c by Serhiy Storchaka in branch '3.6': bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True)… (#806) https://github.com/python/cpython/commit/8c8785b2f8e4048cef350f89c686266f4519b67c

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1fc1f8d7f737f80a1ee5ea37b9781c0a790102b2 by Serhiy Storchaka in branch '3.5': bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) (#805) (#807) https://github.com/python/cpython/commit/1fc1f8d7f737f80a1ee5ea37b9781c0a790102b2

[issue28876] bool of large range raises OverflowError

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e46fb8611867fa3b407a813f53137929b7cb4a10 by Serhiy Storchaka (4kir4) in branch 'master': bpo-28876: bool of large range raises OverflowError (#699) https://github.com/python/cpython/commit/e46fb8611867fa3b407a813f53137929b7cb4a10 --

[issue29865] Use PyXXX_GET_SIZE macros rather than Py_SIZE for concrete types

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset fff9a31a91283c39c363af219e595eab7d4da6f7 by Serhiy Storchaka in branch 'master': bpo-29865: Use PyXXX_GET_SIZE macros rather than Py_SIZE for concrete types. (#748)

[issue28876] bool of large range raises OverflowError

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6fad4090ec9a27f8572bb00661b9890f01fb62f7 by Serhiy Storchaka in branch '3.6': bpo-28876: bool of large range raises OverflowError (#699) (#734) https://github.com/python/cpython/commit/6fad4090ec9a27f8572bb00661b9890f01fb62f7 --

[issue27593] Deprecate sys._mercurial and create sys._git

2017-03-24 Thread Ned Deily
Ned Deily added the comment: New changeset 8c18fbeed1c7721b67f1726a6e9c41acef823135 by Ned Deily in branch '3.6': bpo-27593: Revise git SCM build info. (#744) (#745) https://github.com/python/cpython/commit/8c18fbeed1c7721b67f1726a6e9c41acef823135 --

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-03-24 Thread Ned Deily
Ned Deily added the comment: New changeset 75345c552d0889f4f63039d6063f371846c8f41f by Ned Deily (Nick Coghlan) in branch '3.6': [3.6] bpo-29723: Consistently configure sys.path[0] (#636) https://github.com/python/cpython/commit/75345c552d0889f4f63039d6063f371846c8f41f -- nosy:

[issue29723] 3.6.1rc1 adds the current directory to sys.path when running a subdirectory's __main__.py; previous versions did not

2017-03-24 Thread Ned Deily
Ned Deily added the comment: New changeset 75345c552d0889f4f63039d6063f371846c8f41f by Ned Deily (Nick Coghlan) in branch '3.6': [3.6] bpo-29723: Consistently configure sys.path[0] (#636) https://github.com/python/cpython/commit/75345c552d0889f4f63039d6063f371846c8f41f --

[issue28876] bool of large range raises OverflowError

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4276068fe57e93b4c8d428f0b1cde8ca04b8fb99 by Serhiy Storchaka in branch '3.5': bpo-28876: bool of large range raises OverflowError (#699) (#735) https://github.com/python/cpython/commit/4276068fe57e93b4c8d428f0b1cde8ca04b8fb99 --

[issue29859] Return code of pthread_* in thread_pthread.h is not used for perror

2017-03-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset d7fa6b259e00fca04dbf816bfcf4115fdda14bb7 by INADA Naoki (Daniel Birnstiel) in branch 'master': bpo-29859: Fix error messages from return codes for pthread_* calls (GH-741)

[issue29873] Need a look for return value checking [_elementtree.c]

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 827c78326aa850257ca40991b401b3db298c54fb by Xiang Zhang in branch '2.7': bpo-29873: fix INCREF for possible NULL value in element_getattr() (GH-757) https://github.com/python/cpython/commit/827c78326aa850257ca40991b401b3db298c54fb --

[issue29876] Check for null return value [_elementtree.c : subelement]

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 9c0408d9b68d8f65aad22ca0767f154d6b9f526c by Xiang Zhang in branch '2.7': bpo-29876: fix DECREF for NULL value in subelement() (GH-760) https://github.com/python/cpython/commit/9c0408d9b68d8f65aad22ca0767f154d6b9f526c -- nosy: +xiang.zhang

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-03-24 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___

[issue28810] Document bytecode changes in 3.6

2017-03-24 Thread Brett Cannon
Brett Cannon added the comment: New changeset 74bfcc314b188e1e8c90e442270e36d6510755ee by Brett Cannon in branch '3.6': bpo-28810: Document remaining bytecode changes in 3.6 (GH-651) (GH-808) https://github.com/python/cpython/commit/74bfcc314b188e1e8c90e442270e36d6510755ee --

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

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

[issue29553] Argparser does not display closing parentheses in nested mutex groups

2017-03-24 Thread paul j3
paul j3 added the comment: How would you rank this issue relative to other `argparse` ones? Currently I'm following 123 open issues. -- ___ Python tracker

[issue29897] itertools.chain behaves strangly when copied with copy.copy

2017-03-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Humph, that is definitely not the expected result. The itertools copy/reduce support has been a never-ending source of bugs and headaches. It looks like the problem is that __reduce__ is returning the existing tuple iterator rather than a new one: >>> a

[issue28810] Document bytecode changes in 3.6

2017-03-24 Thread Brett Cannon
Brett Cannon added the comment: Is there anything left to do for this Ivan? -- ___ Python tracker ___ ___

[issue29838] Check that sq_length and mq_length return non-negative result

2017-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: The changes appear consistent within themselves (ie, no apparent typos), and the one for builtin len appears to fix a bug that would allow negative length. Can tests be written in Python that fail without the patch? Or would mis-behaving classes have to be

[issue29838] Check that sq_length and mq_length return non-negative result

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The alternate approach is raising SystemError rather than crashing in debug build on assertion. Since this check is used in exceptional case (when a raised exception is expected) it doesn't slow down working code. --

[issue29719] "Date" of what's new is confusing

2017-03-24 Thread Ned Deily
Ned Deily added the comment: New changeset 0acdea79cba3883c5e7035c7336fb0ce54435c03 by Ned Deily (INADA Naoki) in branch '3.6': bpo-29719: Remove Date and Release field in whatsnew/3.6 (GH-500) https://github.com/python/cpython/commit/0acdea79cba3883c5e7035c7336fb0ce54435c03 --

[issue29864] Misuse of Py_SIZE in dict.fromkey()

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset af839fe2fef12dbbc8083fc7f01daee48a85a916 by Serhiy Storchaka in branch '3.6': bpo-29864: Don't use Py_SIZE for dict object. (#747) (#750) https://github.com/python/cpython/commit/af839fe2fef12dbbc8083fc7f01daee48a85a916 --

[issue29874] Need a look for return value checking [selectmodule.c]

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset e6a55dd8391651a7d3a97b6215e70e48e628d3d7 by Xiang Zhang in branch '2.7': bpo-29874: fix INCREF for possible NULL values in select_select() (GH-758) https://github.com/python/cpython/commit/e6a55dd8391651a7d3a97b6215e70e48e628d3d7 --

[issue27593] Deprecate sys._mercurial and create sys._git

2017-03-24 Thread Ned Deily
Ned Deily added the comment: New changeset ed512cba78af211da4d83cbb7cc533c39176f374 by Ned Deily in branch '3.5': bpo-27593: Revise git SCM build info. (#744) (#746) https://github.com/python/cpython/commit/ed512cba78af211da4d83cbb7cc533c39176f374 --

[issue29856] curses online documentation typo

2017-03-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 64508780d72769e4c7afc67a511c057261c578f6 by Mariatta in branch 'master': bpo-29856: Fix typo in curses documentation (GH-730) https://github.com/python/cpython/commit/64508780d72769e4c7afc67a511c057261c578f6 --

[issue25455] Some repr implementations don't check for self-referential structures

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 08612ed6a91003cdba7617dee7787c26495c50d9 by Serhiy Storchaka in branch '3.5': bpo-25455: Fixed crashes in repr of recursive buffered file-like objects. (#514) (#727)

[issue27593] Deprecate sys._mercurial and create sys._git

2017-03-24 Thread Ned Deily
Ned Deily added the comment: New changeset 554626ada769abf82a5dabe6966afa4265acb6a6 by Ned Deily in branch 'master': bpo-27593: Revise git SCM build info. (#744) https://github.com/python/cpython/commit/554626ada769abf82a5dabe6966afa4265acb6a6 --

[issue29856] curses online documentation typo

2017-03-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 91f79db02acb9f82c738bb0b2f7bfc3260b90930 by Mariatta in branch '2.7': bpo-29856: Fix typo in curses documentation (GH-730) (GH-733) https://github.com/python/cpython/commit/91f79db02acb9f82c738bb0b2f7bfc3260b90930 --

[issue29856] curses online documentation typo

2017-03-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset d1f566f6bddc67e9870eaa75ae477208b9a199be by Mariatta in branch '3.6': bpo-29856: Fix typo in curses documentation (GH-730) (GH-731) https://github.com/python/cpython/commit/d1f566f6bddc67e9870eaa75ae477208b9a199be --

[issue27593] Deprecate sys._mercurial and create sys._git

2017-03-24 Thread Ned Deily
Ned Deily added the comment: New changeset e9213d929d7b0075539e87416f6a6fb86c27454b by Ned Deily in branch '3.6': bpo-27593: Revise git SCM build info. (#744) (#745) https://github.com/python/cpython/commit/e9213d929d7b0075539e87416f6a6fb86c27454b --

[issue29856] curses online documentation typo

2017-03-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 7cc071c96b95e7422f64cb436d547c952e0ca52f by Mariatta in branch '3.5': bpo-29856: Fix typo in curses documentation (GH-730) (GH-732) https://github.com/python/cpython/commit/7cc071c96b95e7422f64cb436d547c952e0ca52f --

[issue20087] Mismatch between glibc and X11 locale.alias

2017-03-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset df8280838f52d6ec45ba03ef734b0dec8a9c43fb by Benjamin Peterson in branch 'master': bpo-20087: Revert "make the glibc alias table take precedence over the X11 one (#422)" (#713)

[issue29840] Avoid raising OverflowError in bool()

2017-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://docs.python.org/3/library/functions.html#bool refers to https://docs.python.org/3/library/stdtypes.html#truth The latter says that values are true ("All other values are considered true") unless one of certain conditions holds. For user-defined

[issue28810] Document bytecode changes in 3.6

2017-03-24 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Thanks Brett! I think this could be closed now. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29838] Check that sq_length and mq_length return non-negative result

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Mis-behaving classes have to be written in C. If the __len__ method in Python class returns a negative value, ValueError is raised in slot_sq_length(). PySequence_GetItem() already contains an assertion that sq_length returns negative value only when an

[issue29859] Return code of pthread_* in thread_pthread.h is not used for perror

2017-03-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset fe30339534c602af1123e1402e44a1463f91f2e5 by INADA Naoki in branch '3.6': bpo-29859: Fix error messages from return codes for pthread_* calls (GH-753) https://github.com/python/cpython/commit/fe30339534c602af1123e1402e44a1463f91f2e5 --

[issue29841] errors raised by bytes() and bytearray() for invalid size argument

2017-03-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed ___ Python tracker ___ ___

[issue29897] itertools.chain behaves strangly when copied with copy.copy

2017-03-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___

[issue29841] errors raised by bytes() and bytearray() for invalid size argument

2017-03-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: errors raised by bytes and bytearray constructors for invalid size argument -> errors raised by bytes() and bytearray() for invalid size argument ___ Python tracker

[issue28810] Document bytecode changes in 3.6

2017-03-24 Thread Brett Cannon
Changes by Brett Cannon : -- pull_requests: +713 ___ Python tracker ___ ___

[issue29838] Check that sq_length and mq_length return non-negative result

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: assert() is no-op in release build and that are not critical parts. Actually the patch decreases the number of checks in release build. Runtime check PyErr_Occurred() is moved into assert() in builtin_len(). --

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +711 ___ Python tracker ___ ___

[issue29897] itertools.chain behaves strangly when copied with copy.copy

2017-03-24 Thread Michael Seifert
New submission from Michael Seifert: When using `copy.copy` to copy an `itertools.chain` instance the results can be weird. For example >>> from itertools import chain >>> from copy import copy >>> a = chain([1,2,3], [4,5,6]) >>> b = copy(a) >>> next(a) # looks okay 1 >>> next(b) # jumps to

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +712 ___ Python tracker ___ ___

[issue29095] Compiling Python 3.6 from source on MacOS X Sierra

2017-03-24 Thread Tommy Carstensen
Tommy Carstensen added the comment: Thanks @ned.deily ! That did the trick for me! When installing openssl I just had to do ./config --prefix=/my/home/dir prior to doing make and make install. Then I just did two commands prior to installing python3.6: export CFLAGS="-I/my/home/dir/include"

[issue29892] change statement for open() is splited into two part in middle of sentence.

2017-03-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 5dafaece67cb576ef96579fb5ddcbf62e0827b0d by Mariatta in branch '3.6': bpo-29892: Fix wrong markup on doc-lib-functions (GH-802) (GH-810) https://github.com/python/cpython/commit/5dafaece67cb576ef96579fb5ddcbf62e0827b0d --

[issue29892] change statement for open() is splited into two part in middle of sentence.

2017-03-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: PR was merged and backported into 3.6. Thanks all :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue6028] Interpreter aborts when chaining an infinite number of exceptions

2017-03-24 Thread Aaron Meurer
Changes by Aaron Meurer : -- nosy: +Aaron.Meurer ___ Python tracker ___ ___

[issue29899] zlib missing when --enable--optimizations option appended

2017-03-24 Thread kyren 原子喵
New submission from kyren 原子喵: i think it happens to all versions that recognizes the optimizations option. At least I confirmed python version 3.4.6, 3.5.3, 3.6.1, when `--enable-optimizations` is appended, `zlib` cannot be imported, `No module named zlib`. I'm working on Ubuntu 14.04 by the

[issue29737] Optimize concatenating empty tuples

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

[issue29557] binhex documentation claims unknown bug

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

[issue29897] itertools.chain behaves strangly when copied with copy.copy

2017-03-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___

[issue29896] ElementTree.fromstring raises undocumented UnicodeError

2017-03-24 Thread R. David Murray
R. David Murray added the comment: Agreed with Terry. The general policy in Python is that we let errors bubble up unless there is a good reason to do something else with them. And errors that bubble up are not, in general, documented. (In short, Python is not Java :) -- nosy:

[issue29892] change statement for open() is splited into two part in middle of sentence.

2017-03-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 29540cdf6c66df9f806375a95078c0c63192ef78 by Mariatta (NAKAMURA Osamu) in branch 'master': bpo-29892: Fix wrong markup on doc-lib-functions (GH-802) https://github.com/python/cpython/commit/29540cdf6c66df9f806375a95078c0c63192ef78 --

  1   2   3   4   5   >