[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-08-28 Thread Chris Withers
Chris Withers added the comment: New changeset 38d311d79e57479f7a684c2cd298293033dc4990 by Chris Withers (Miss Islington (bot)) in branch '3.8': bpo-36871: Ensure method signature is used when asserting mock calls to a method (GH15578) https://github.com/python/cpython/commit/38d311d79e57479

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-08-28 Thread Chris Withers
Chris Withers added the comment: New changeset be310e03d0b84ef56e9d35b0b1b21d685b7ea371 by Chris Withers (Miss Islington (bot)) in branch '3.7': bpo-36871: Ensure method signature is used when asserting mock calls to a method (GH15577) https://github.com/python/cpython/commit/be310e03d0b84ef

[issue37482] Email address display name fails with both encoded words and special chars

2019-08-28 Thread B Siemerink
B Siemerink added the comment: Thank you all! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2019-08-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: This was fixed a long time ago. -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker __

[issue35946] Ambiguous documentation for assert_called_with()

2019-08-28 Thread miss-islington
miss-islington added the comment: New changeset 612d3935ec0b2fbe88b3fae8167f0c503c61a9ca by Miss Islington (bot) in branch '3.8': bpo-35946: Improve assert_called_with documentation (GH-11796) https://github.com/python/cpython/commit/612d3935ec0b2fbe88b3fae8167f0c503c61a9ca -- nosy:

[issue37950] ast.dump() with incomplete node

2019-08-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +15258 pull_request: https://github.com/python/cpython/pull/15582 ___ Python tracker ___

[issue37950] ast.dump() with incomplete node

2019-08-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e64f948e762a6b9fd02e2902ccf42438df6fcb61 by Serhiy Storchaka in branch 'master': bpo-37950: Fix ast.dump() when call with incompletely initialized node. (GH-15510) https://github.com/python/cpython/commit/e64f948e762a6b9fd02e2902ccf42438df6fc

[issue37950] ast.dump() with incomplete node

2019-08-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +15257 pull_request: https://github.com/python/cpython/pull/15581 ___ Python tracker ___ __

[issue37968] Add a turtle module function to draw a circle centered at the turtle

2019-08-28 Thread Yehuda Katz
Yehuda Katz added the comment: Thanks for the clarifications. Yehuda(Israel) On Thu, Aug 29, 2019 at 3:36 AM Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > > Yehuda, thank you for the suggestions, but we're going to decline. > > -- > resolution: -> rejected > s

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2019-08-28 Thread Ned Deily
Ned Deily added the comment: Ronald's PR 14738 LGTM. I merged it to master and backported for 3.8.0b4 and 3.7.5. Thanks, everyone! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8, Python 3.9 -Python 2.7, Python 3.4, Python 3.5, P

[issue37968] Add a turtle module function to draw a circle centered at the turtle

2019-08-28 Thread Yehuda Katz
Yehuda Katz added the comment: Thanks for the clarifications. Yehuda(Israel) On Thu, Aug 29, 2019 at 3:36 AM Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > > Yehuda, thank you for the suggestions, but we're going to decline. > > -- > resolution: -> rejected > s

[issue37960] repr() of buffered and text streams silences too many exceptions

2019-08-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +15256 pull_request: https://github.com/python/cpython/pull/15580 ___ Python tracker ___ __

[issue37960] repr() of buffered and text streams silences too many exceptions

2019-08-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b235a1b47394eedc5f8ea4cf214f56c4c6932e59 by Serhiy Storchaka in branch 'master': bpo-37960: Silence only necessary errors in repr() of buffered and text streams. (GH-15543) https://github.com/python/cpython/commit/b235a1b47394eedc5f8ea4cf214f

[issue12077] Harmonizing descriptor protocol documentation

2019-08-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: See PR 12992 for the cross-reference from the __set__ docs to the section covering data and non-data descriptors. -- ___ Python tracker _

[issue35946] Ambiguous documentation for assert_called_with()

2019-08-28 Thread Ned Deily
Ned Deily added the comment: New changeset f5896a05edf5df91fb1b55bd481ba5b2a3682f4e by Ned Deily (Rémi Lapeyre) in branch 'master': bpo-35946: Improve assert_called_with documentation (GH-11796) https://github.com/python/cpython/commit/f5896a05edf5df91fb1b55bd481ba5b2a3682f4e -- nosy

[issue35946] Ambiguous documentation for assert_called_with()

2019-08-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +15255 pull_request: https://github.com/python/cpython/pull/15579 ___ Python tracker ___ __

[issue25777] Misleading descriptions in docs about invoking descriptors.

2019-08-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset f3dca6acee609a3a12f22152fd98602c1cbadde0 by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-25777: Wording describes a lookup, not a call (GH-15573) (GH-15576) https://github.com/python/cpython/commit/f3dca6acee609a3a12f22152fd9

[issue25777] Misleading descriptions in docs about invoking descriptors.

2019-08-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-08-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +15254 pull_request: https://github.com/python/cpython/pull/15578 ___ Python tracker ___ __

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-08-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +15253 pull_request: https://github.com/python/cpython/pull/15577 ___ Python tracker ___ __

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-08-28 Thread Chris Withers
Chris Withers added the comment: New changeset c96127821ebda50760e788b1213975a0d5bea37f by Chris Withers (Xtreak) in branch 'master': bpo-36871: Ensure method signature is used when asserting mock calls to a method (GH13261) https://github.com/python/cpython/commit/c96127821ebda50760e788b121

[issue12077] Harmonizing descriptor protocol documentation

2019-08-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Davide] > - use the same names for __get__ arguments throughout > the documentation (both the reference and the tutorial), > e.g. __get__(self, instance, owner) Early on the choice of variable names diverged (including in various PEPs and in the C sourc

[issue36167] DOC: Incorrect capitalization in Programming FAQ

2019-08-28 Thread Ned Deily
Ned Deily added the comment: Thank you for your contribution, Avinash! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker ___

[issue25777] Misleading descriptions in docs about invoking descriptors.

2019-08-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +15252 pull_request: https://github.com/python/cpython/pull/15576 ___ Python tracker ___ __

[issue25777] Misleading descriptions in docs about invoking descriptors.

2019-08-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 03acba6f1a851064ba1fa78965ece4354d499c04 by Raymond Hettinger in branch 'master': bpo-25777: Wording describes a lookup, not a call (GH-15573) https://github.com/python/cpython/commit/03acba6f1a851064ba1fa78965ece4354d499c04 -- ___

[issue36167] DOC: Incorrect capitalization in Programming FAQ

2019-08-28 Thread miss-islington
miss-islington added the comment: New changeset 409493d0acdb8dec55868bb5c6af427ce31ff555 by Miss Islington (bot) in branch '3.7': bpo-36167: fix an incorrect capitalization (GH-14482) https://github.com/python/cpython/commit/409493d0acdb8dec55868bb5c6af427ce31ff555 -- _

[issue36167] DOC: Incorrect capitalization in Programming FAQ

2019-08-28 Thread miss-islington
miss-islington added the comment: New changeset e009a91607e7a81302b98d1b322d564ddc1fce9d by Miss Islington (bot) in branch '3.8': bpo-36167: fix an incorrect capitalization (GH-14482) https://github.com/python/cpython/commit/e009a91607e7a81302b98d1b322d564ddc1fce9d -- nosy: +miss-is

[issue36167] DOC: Incorrect capitalization in Programming FAQ

2019-08-28 Thread Ned Deily
Ned Deily added the comment: New changeset 3aa48b88c7485aca1fdfa54b3d8e53931ff067fd by Ned Deily (avinassh) in branch 'master': bpo-36167: fix an incorrect capitalization (GH-14482) https://github.com/python/cpython/commit/3aa48b88c7485aca1fdfa54b3d8e53931ff067fd -- nosy: +ned.deily

[issue36167] DOC: Incorrect capitalization in Programming FAQ

2019-08-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +15250 pull_request: https://github.com/python/cpython/pull/15574 ___ Python tracker ___ __

[issue36167] DOC: Incorrect capitalization in Programming FAQ

2019-08-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +15251 pull_request: https://github.com/python/cpython/pull/15575 ___ Python tracker ___ __

[issue18049] Re-enable threading test on macOS

2019-08-28 Thread miss-islington
miss-islington added the comment: New changeset f92bb6ed336c49cabf30717c3b741b1b4284f491 by Miss Islington (bot) in branch '3.8': bpo-18049: Define THREAD_STACK_SIZE for AIX to pass default recursion limit test (GH-15081) https://github.com/python/cpython/commit/f92bb6ed336c49cabf30717c3b741

[issue36511] Add Windows ARM32 buildbot

2019-08-28 Thread Ned Deily
Ned Deily added the comment: > Can this issue now be closed? I spoke too soon. It appears there's another open backport PR-14244 for this issue that needs some conflict resolution to be merged. -- ___ Python tracker

[issue36511] Add Windows ARM32 buildbot

2019-08-28 Thread Ned Deily
Ned Deily added the comment: I manually restarted and merged the stalled 3.8 backport for 3.8.0b4. Can this issue now be closed? -- nosy: +ned.deily versions: +Python 3.9 ___ Python tracker ___

[issue25777] Misleading descriptions in docs about invoking descriptors.

2019-08-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +15249 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15573 ___ Python tracker ___

[issue36511] Add Windows ARM32 buildbot

2019-08-28 Thread miss-islington
miss-islington added the comment: New changeset ed00fee7d4c28489b5d6e4580b1e1fe0855687ca by Miss Islington (bot) in branch '3.8': bpo-36511: Fix failures in Windows ARM32 buildbot (GH-15181) https://github.com/python/cpython/commit/ed00fee7d4c28489b5d6e4580b1e1fe0855687ca -- __

[issue18049] Re-enable threading test on macOS

2019-08-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +15248 pull_request: https://github.com/python/cpython/pull/15572 ___ Python tracker ___ __

[issue34775] pathlib.PurePath division raises TypeError instead of returning NotImplemented

2019-08-28 Thread Ned Deily
Ned Deily added the comment: The change was pushed for release in 3.8.0b4. I don't think we should backport it to 3.7 at this stage in its lifecycle as the old behavior has been around for a long time. Thanks, everyone! -- resolution: -> fixed stage: patch review -> resolved status

[issue37964] F_GETPATH is not available in fcntl.fcntl

2019-08-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 465e5d5bcbfd42be058d3584ccb421405eba1594 by Benjamin Peterson in branch 'master': bpo-37964: Make sure test works if TESTFN is in a non-ASCII directory. (GH-15568) https://github.com/python/cpython/commit/465e5d5bcbfd42be058d3584ccb421405eba

[issue34775] pathlib.PurePath division raises TypeError instead of returning NotImplemented

2019-08-28 Thread Ned Deily
Ned Deily added the comment: New changeset 4adcaf81513e57a2a4e278073a89efb1375af8df by Ned Deily (Miss Islington (bot)) in branch '3.8': bpo-34775: Return NotImplemented in PurePath division. (GH-9509) (GH-15172) https://github.com/python/cpython/commit/4adcaf81513e57a2a4e278073a89efb1375af8d

[issue37482] Email address display name fails with both encoded words and special chars

2019-08-28 Thread Ned Deily
Ned Deily added the comment: I manually merged the stalled 3.8 backport to make 3.8.0b4. Can this issue now be closed? -- ___ Python tracker ___

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2019-08-28 Thread miss-islington
miss-islington added the comment: New changeset e471a543a4f7c52a8d0081ec5142adab3416d8fb by Miss Islington (bot) in branch '3.8': bpo-18378: Recognize "UTF-8" as a valid name in locale._parse_localename (GH-14736) https://github.com/python/cpython/commit/e471a543a4f7c52a8d0081ec5142adab3416d

[issue36511] Add Windows ARM32 buildbot

2019-08-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +15247 pull_request: https://github.com/python/cpython/pull/15571 ___ Python tracker ___ __

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2019-08-28 Thread miss-islington
miss-islington added the comment: New changeset 554143ebc2546e0b8b722dfafe397c0316f29980 by Miss Islington (bot) in branch '3.7': bpo-18378: Recognize "UTF-8" as a valid name in locale._parse_localename (GH-14736) https://github.com/python/cpython/commit/554143ebc2546e0b8b722dfafe397c0316f29

[issue36743] Docs: Descript __get__ signature defined differently across the docs

2019-08-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Collecting various factlets on this topic PEP 252 gives the specification for the descriptor protocol: "__get__(): a function callable with one or two arguments that retrieves the attribute value from an object." function_get, property_get, classmethod_g

[issue37482] Email address display name fails with both encoded words and special chars

2019-08-28 Thread Ned Deily
Ned Deily added the comment: New changeset bd127b1b7dd50c76c4419d9c87c12901527d19da by Ned Deily (bsiem) in branch '3.8': [3.8] bpo-37482: Fix email address name with encoded words and special chars (GH-14561) (GH-15380) https://github.com/python/cpython/commit/bd127b1b7dd50c76c4419d9c87c129

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2019-08-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +15245 pull_request: https://github.com/python/cpython/pull/15569 ___ Python tracker ___ __

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2019-08-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +15246 pull_request: https://github.com/python/cpython/pull/15570 ___ Python tracker ___ __

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2019-08-28 Thread Ned Deily
Ned Deily added the comment: New changeset b0caf329815120acf50287e29858093d328b0e3c by Ned Deily (Ronald Oussoren) in branch 'master': bpo-18378: Recognize "UTF-8" as a valid name in locale._parse_localename (GH-14736) https://github.com/python/cpython/commit/b0caf329815120acf50287e29858093d

[issue37964] F_GETPATH is not available in fcntl.fcntl

2019-08-28 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +15244 pull_request: https://github.com/python/cpython/pull/15568 ___ Python tracker ___ ___

[issue34410] itertools.tee not thread-safe; can segfault interpreter when wrapped iterator releases GIL

2019-08-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've applied the patch to "master". I considered backporting but am thinking that would be risky at this stage in the 3.8 release. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 2.7, P

[issue37974] zip() docstring should say 'iterator' instead of 'object with __next__()'

2019-08-28 Thread Sergey Fedoseev
New submission from Sergey Fedoseev : In [3]: help(zip) class zip(object) | zip(*iterables) --> zip object | | Return a zip object whose .__next__() method returns a tuple where | the i-th element comes from the i-th iterable argument. The .__next__() | method continues until the sh

[issue37973] improve docstrings of sys.float_info

2019-08-28 Thread Sergey Fedoseev
New submission from Sergey Fedoseev : In [8]: help(sys.float_info) ... | | dig | DBL_DIG -- digits | This is not very helpful, https://docs.python.org/3/library/sys.html#sys.float_info is more verbose, so probably docstrings should be updated from where. -- assignee: do

[issue34410] itertools.tee not thread-safe; can segfault interpreter when wrapped iterator releases GIL

2019-08-28 Thread hongweipeng
Change by hongweipeng : -- pull_requests: +15243 pull_request: https://github.com/python/cpython/pull/15567 ___ Python tracker ___ _

[issue37440] httplib should enable post-handshake authentication for TLS 1.3

2019-08-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yes, makes sense for 2.7, too. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37428] SSLContext.post_handshake_auth implicitly enables cert validation

2019-08-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yes, please. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue37964] F_GETPATH is not available in fcntl.fcntl

2019-08-28 Thread miss-islington
miss-islington added the comment: New changeset 13f37f2ba8b1fa39f312dca920e847d9c0313c77 by Miss Islington (bot) (Vinay Sharma) in branch 'master': closes bpo-37964: add F_GETPATH command to fcntl (GH-15550) https://github.com/python/cpython/commit/13f37f2ba8b1fa39f312dca920e847d9c0313c77 -

[issue16468] argparse only supports iterable choices

2019-08-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +15242 pull_request: https://github.com/python/cpython/pull/15566 ___ Python tracker ___ __

[issue37968] Add a turtle module function to draw a circle centered at the turtle

2019-08-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Yehuda, thank you for the suggestions, but we're going to decline. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker _

[issue37968] Add a turtle module function to draw a circle centered at the turtle

2019-08-28 Thread Eric V. Smith
Eric V. Smith added the comment: I agree that we should close this and not implement a function to draw a circle centered on the turtle. The fundamental abstraction with turtle graphics is that the turtle is holding a pen. To have the pen draw elsewhere, where the turtle does not go, breaks

[issue33955] Implement PyOS_CheckStack on macOS using pthread_get_stack*_np

2019-08-28 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue37918] What about an enum for open() modes?

2019-08-28 Thread STINNER Victor
STINNER Victor added the comment: Please send an email to the python-ideas mailing list, rather than opening a bug report at bugs.python.org. -- nosy: +vstinner resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue37385] test_multiprocessing fails on AMD64 FreeBSD CURRENT Shared 2.7

2019-08-28 Thread STINNER Victor
STINNER Victor added the comment: AMD64 FreeBSD CURRENT Shared 2.7 is back to green: this issue is a duplicate of bpo-28724 that I fixed recently. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Add method send_io, recv_io to the socket module.

[issue37959] test_os.test_copy_file_range() killed by SIGSYS (12) on FreeBSD CURRENT buildbot

2019-08-28 Thread STINNER Victor
STINNER Victor added the comment: AMD64 FreeBSD CURRENT Shared 3.x is back to green. I close the issue. https://buildbot.python.org/all/#/builders/168/builds/1356 likely failed because kkobs upgrade the FreeBSD CURRENT VM while the buildbot job was running (inconsistency between *running* li

[issue37968] Add a turtle module function to draw a circle centered at the turtle

2019-08-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Also see: https://en.wikipedia.org/wiki/The_Paradox_of_Choice -- ___ Python tracker ___ ___ P

[issue37968] Add a turtle module function to draw a circle centered at the turtle

2019-08-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: > For the best of my (limited) knowledge, there's currently > no arc() function in module turtle. circle() takes a second argument called "extent": circle(200, 90)# draw 90° of a circle of radius 200 FWIW, searching the turtle documentation page for

[issue15206] uuid module falls back to unsuitable RNG

2019-08-28 Thread STINNER Victor
STINNER Victor added the comment: I close the issue. Python 3.7 and newer are fixed. Python 2.7 is still affected, but I consider that it's ok to leave the bug unfixed in this version. -- > The random number generator now reseeds after a fork. I confirm that it's done since Python 3.7, and

[issue23878] Missing sanity checks for various C library function calls...

2019-08-28 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +15241 pull_request: https://github.com/python/cpython/pull/1 ___ Python tracker ___ ___

[issue37971] Wrong trace with multiple decorators (linenumber wrong in frame)

2019-08-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In Python 3.8+ I got: Traceback (most recent call last): File "/home/serhiy/py/cpython/issue37971.py", line 10, in def foo(): File "/home/serhiy/py/cpython/issue37971.py", line 2, in printingdec raise Exception() Exception The traceback refers

[issue23878] Missing sanity checks for various C library function calls...

2019-08-28 Thread STINNER Victor
STINNER Victor added the comment: The fseek() call has been removed from _Py_FindEnvConfigValue (previously in getpath.c). There is a single file called ffi.c in the master branch: ./Modules/_ctypes/libffi_osx/ffi.c And this file doesn't call calloc(). I guess that the bug was in our embedd

[issue23878] Missing sanity checks for various C library function calls...

2019-08-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset e4a5e9b5bb69025eb879cb133259667241d61a1f by Victor Stinner (Zackery Spytz) in branch 'master': bpo-23878: Remove an unneeded fseek() call in _Py_FindEnvConfigValue() (GH-15424) https://github.com/python/cpython/commit/e4a5e9b5bb69025eb879cb1332

[issue37972] unittest.mock.call does not chain __getitem__ to another _Call object

2019-08-28 Thread Ben Hsing
Change by Ben Hsing : -- keywords: +patch pull_requests: +15240 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15565 ___ Python tracker ___ __

[issue37972] unittest.mock.call does not chain __getitem__ to another _Call object

2019-08-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue37972] unittest.mock.call does not chain __getitem__ to another _Call object

2019-08-28 Thread blhsing
New submission from blhsing : As reported on StackOverflow: https://stackoverflow.com/questions/57636747/how-to-perform-assert-has-calls-for-a-getitem-call The following code would output: [call(), call().foo(), call().foo().__getitem__('bar')] from unittest.mock import MagicMock, call mm = M

[issue37969] urllib.parse functions reporting false equivalent URIs

2019-08-28 Thread Nick Timkovich
Nick Timkovich added the comment: Looking at the history, the line in the docs used to say > ... (for example, an empty query (the draft states that these are equivalent). which was changed to "the RFC" in April 2006 https://github.com/python/cpython/commit/ad5177cf8da#diff-5b4cef771c997754

[issue37971] Wrong trace with multiple decorators (linenumber wrong in frame)

2019-08-28 Thread Joran van Apeldoorn
New submission from Joran van Apeldoorn : When applying multiple decorators to a function, a traceback from the top generator shows the bottom generator instead. For example def printingdec(f): raise Exception() return f def dummydec(f): return f @printingdec @du

[issue15206] uuid module falls back to unsuitable RNG

2019-08-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: The random number generator now reseeds after a fork. Can this now be closed as "out-of-date" or is there still something that needs to be done? -- status: pending -> open ___ Python tracker

[issue37968] Add a turtle module function to draw a circle centered at the turtle

2019-08-28 Thread Yehuda Katz
Yehuda Katz added the comment: G-R-E-A-T. Yehuda (Israel) On Wed, Aug 28, 2019 at 8:29 PM Mark Dickinson wrote: > > Mark Dickinson added the comment: > > Updated title, type and Python version (this would be a new feature, so > would be targeted at Python 3.9). > > -- > components:

[issue37968] Add a turtle module function to draw a circle centered at the turtle

2019-08-28 Thread Yehuda Katz
Yehuda Katz added the comment: G-R-E-A-T. Yehuda, Israel On Wed, Aug 28, 2019 at 8:29 PM Mark Dickinson wrote: > > Mark Dickinson added the comment: > > Updated title, type and Python version (this would be a new feature, so > would be targeted at Python 3.9). > > -- > components:

[issue37176] super() docs don't say what super() does

2019-08-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've add PR 15564 to clarify some known ambiguities for the super() docs including a specific example "what it actually does". -- ___ Python tracker

[issue23674] super() documentation isn't very clear

2019-08-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +15239 pull_request: https://github.com/python/cpython/pull/15564 ___ Python tracker ___ ___

[issue37965] CCompiler has_function displays warning

2019-08-28 Thread miss-islington
miss-islington added the comment: New changeset ea48966e5d868e2863d896ee909460d482a0513c by Miss Islington (bot) in branch '3.7': closes bpo-37965: Fix compiler warning of distutils CCompiler.test_function. (GH-15560) https://github.com/python/cpython/commit/ea48966e5d868e2863d896ee909460d48

[issue37965] CCompiler has_function displays warning

2019-08-28 Thread miss-islington
miss-islington added the comment: New changeset 0229b56d8c0cb65b8ad789e69dcd281fd92a6d96 by Miss Islington (bot) in branch '2.7': closes bpo-37965: Fix compiler warning of distutils CCompiler.test_function. (GH-15560) https://github.com/python/cpython/commit/0229b56d8c0cb65b8ad789e69dcd281fd

[issue37965] CCompiler has_function displays warning

2019-08-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 23985c6a64222df46cd7e21b9b21c0e37aa95e10 by Benjamin Peterson (Miss Islington (bot)) in branch '3.8': closes bpo-37965: Fix compiler warning of distutils CCompiler.test_function. (GH-15561) https://github.com/python/cpython/commit/23985c6a64

[issue37968] Add a turtle module function to draw a circle centered at the turtle

2019-08-28 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +glingl, willingc -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue37968] Add a turtle module function to draw a circle centered at the turtle

2019-08-28 Thread Mark Dickinson
Mark Dickinson added the comment: Updated title, type and Python version (this would be a new feature, so would be targeted at Python 3.9). -- components: +Library (Lib) title: The turtle -> Add a turtle module function to draw a circle centered at the turtle type: -> enhancement ve

[issue20806] os.times document points to wrong section of non-Linux manual

2019-08-28 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I updated the PR to reference times(2) and times(3) along with an MSDN link. -- ___ Python tracker ___

[issue37965] CCompiler has_function displays warning

2019-08-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +15238 pull_request: https://github.com/python/cpython/pull/15563 ___ Python tracker ___ __

[issue37965] CCompiler has_function displays warning

2019-08-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +15237 pull_request: https://github.com/python/cpython/pull/15562 ___ Python tracker ___ __

[issue37965] CCompiler has_function displays warning

2019-08-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +15236 pull_request: https://github.com/python/cpython/pull/15561 ___ Python tracker ___ __

[issue37965] CCompiler has_function displays warning

2019-08-28 Thread miss-islington
miss-islington added the comment: New changeset 55aabee07501e1468082b3237620e4ecd75c5da6 by Miss Islington (bot) (Anonymous Maarten) in branch 'master': closes bpo-37965: Fix compiler warning of distutils CCompiler.test_function. (GH-15560) https://github.com/python/cpython/commit/55aabee075

[issue27260] Missing equality check for super objects

2019-08-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Though not beautiful, we already have a way to fulfill this rare use case: >>> class Foo(): pass >>> s = super(Foo) >>> t = super(Foo) >>> (s.__self_class__, s.__self__) == (t.__self_class__, t.__self__) >>> True Though awk

[issue37968] The turtle

2019-08-28 Thread Yehuda Katz
Yehuda Katz added the comment: Such a function would be welcomed. For the best of my (limited) knowledge, there's currently no arc() function in module turtle. I can't think about a proper name... Sorry. Yehuda On Wed, Aug 28, 2019 at 7:55 PM Nick Timkovich wrote: > > Nick Timkovich added

[issue37968] The turtle

2019-08-28 Thread Mark Dickinson
Mark Dickinson added the comment: > 1 the next code SHOULD produce an error message. Think that it's followed > by a few dozens of code lines: > from turtle import * > fd; rt(90) There's no reasonable mechanism in current Python by which this could produce an error message; it's not an error,

[issue37968] The turtle

2019-08-28 Thread Nick Timkovich
Nick Timkovich added the comment: Resolving #1 as you suggest is next to impossible. Python can not deduce if you meant to call the function or just refer to its name. Admittedly, the latter is strange in non-interactive contexts, but it is valid. #2, as far as I can tell Logo had an ARC com

[issue37878] Sub-Interpreters : Document PyThreadState_DeleteCurrent()

2019-08-28 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I updated the PR to make the function internal. -- ___ Python tracker ___ ___ Python-bugs-list

[issue37968] The turtle

2019-08-28 Thread Yehuda Katz
Yehuda Katz added the comment: Hi, Sorry to say but these don't satisfy my issues. 1 the next code SHOULD produce an error message. Think that it's followed by a few dozens of code lines: from turtle import * fd; rt(90) 2 Old Logo had a useful function of creating a circle AROUND THE TURTLE.

[issue37970] urllib.parse docstrings incomplete

2019-08-28 Thread Zachary Ware
New submission from Zachary Ware : For example, urlsplit: >>> from urllib.parse import urlsplit >>> help(urlsplit) Help on function urlsplit in module urllib.parse: urlsplit(url, scheme='', allow_fragments=True) Parse a URL into 5 components: :///?# Return a 5-tuple: (scheme, netlo

[issue37968] The turtle

2019-08-28 Thread Yehuda Katz
Yehuda Katz added the comment: Sorry to say but these don't satisfy my issues. 1 the next code SHOULD produce an error message. Think that it's followed by a few dozens of code lines: from turtle import * fd; rt(90) 2 Old Logo had a useful function of creating a circle AROUND THE TURTLE. It wo

[issue37140] ctypes change made clang fail to build

2019-08-28 Thread STINNER Victor
STINNER Victor added the comment: Ok, I'm able to reproduce the crash using: git clone https://github.com/llvm/llvm-project.git cd llvm-project mkdir _build cd _build cmake3 ../llvm -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INS

[issue37968] The turtle

2019-08-28 Thread Nick Timkovich
Nick Timkovich added the comment: Regarding #1: In Python, you may refer to a variable's name (e.g. `rt`, which is a function), which often has no effect in a script. In the REPL (where you see >>>) it is useful to inspect the object: >>> turtle.rt In order to call that name/function, pare

  1   2   >