[issue39108] random needs doc for "gauss" versus "normalvariate"

2020-10-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +21850 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22928 ___ Python tracker __

[issue42133] Update the stdlib to fall back to __spec__.parent if __loader__ isn't defined

2020-10-23 Thread Brett Cannon
New submission from Brett Cannon : By making sure the stdlib can handle the case where __loader__ isn't defined but __spec__.parent is, eventually the former could be dropped for the latter. -- components: Library (Lib) messages: 379486 nosy: brett.cannon priority: normal severity: nor

[issue38976] Add support for HTTP Only flag in MozillaCookieJar

2020-10-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 16ee68da6e12bb2d79751b32cc37523fe4f4bb48 by Jacob Neil Taylor in branch 'master': bpo-38976: Add support for HTTP Only flag in MozillaCookieJar (#17471) https://github.com/python/cpython/commit/16ee68da6e12bb2d79751b32cc37523fe4f4bb48 ---

[issue38976] Add support for HTTP Only flag in MozillaCookieJar

2020-10-23 Thread Senthil Kumaran
Change by Senthil Kumaran : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.9 ___ Python tracker ___ __

[issue41950] Typo in Python 3.9 what's new page

2020-10-23 Thread Weiliang Li
Weiliang Li added the comment: No wonder there is discrepancy... So our tactic would be to patch in 3.9 branch and bring it back to master? -- ___ Python tracker ___

[issue42133] Update the stdlib to fall back to __spec__.parent if __loader__ isn't defined

2020-10-23 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +21851 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22929 ___ Python tracker ___ ___

[issue41950] Typo in Python 3.9 what's new page

2020-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, I'll see if I can reopen your PR and we can apply it to the 3.9 branch, we'll then forward port it (if and when that's done). -- ___ Python tracker

[issue21762] update the import machinery to only use __spec__

2020-10-23 Thread Brett Cannon
Brett Cannon added the comment: It turns out that the import system itself doesn't use `__loader__` (it does set it), but various parts of the stdlib do use `__loader__`. bpo-42133 updates a bunch of stdlib modules to use `__spec__.loader` as a fallback. bpo-42132 tracks the fact that there'

[issue42074] setup error on windows

2020-10-23 Thread Steve Dower
Steve Dower added the comment: Thanks for finding the error code, Terry. CaptainMitsumoto, firstly sorry for the frustration. We try to make it work reliably everywhere, but there are so many variables when it comes to installation that weird things always come up. As an alternative, you mi

[issue42134] Raise ImportWarning when falling back to find_module()

2020-10-23 Thread Brett Cannon
New submission from Brett Cannon : find_spec() has superseded find_module() since Python 3.4. -- components: Interpreter Core messages: 379492 nosy: brett.cannon priority: normal severity: normal status: open title: Raise ImportWarning when falling back to find_module() versions: Python

[issue42127] functools.cached_property possibly disables key-sharing instance dictionaries

2020-10-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +21852 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22930 ___ Python tracker __

[issue42135] [importlib] Deprecate find_module() implementations

2020-10-23 Thread Brett Cannon
New submission from Brett Cannon : find_spec() supersedes find_module() at this point. -- components: Library (Lib) messages: 379493 nosy: brett.cannon priority: normal severity: normal status: open title: [importlib] Deprecate find_module() implementations type: behavior versions: Pyth

[issue42135] [importlib] Deprecate find_module() implementations

2020-10-23 Thread Brett Cannon
Change by Brett Cannon : -- dependencies: +Raise ImportWarning when falling back to find_module() ___ Python tracker ___ ___ Python-

[issue42127] functools.cached_property possibly disables key-sharing instance dictionaries

2020-10-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy: +docs@python ___ Python tracker ___ _

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-23 Thread Dennis Sweeney
Dennis Sweeney added the comment: Here are those zipf-distributed benchmarks for PR 22904: https://pastebin.com/raw/qBaMi2dm Ignoring differences of <5%, there are 33 cases that get slower, but 477 cases that got faster. Here's a stringbench.py run for PR 22904: https://pastebin.com/raw/ABm

[issue42136] [importlib] deprecate module_repr() methods

2020-10-23 Thread Brett Cannon
New submission from Brett Cannon : The import system handles what `module_repr()` was meant for. -- components: Library (Lib) messages: 379495 nosy: brett.cannon priority: normal severity: normal status: open title: [importlib] deprecate module_repr() methods type: behavior versions: Py

[issue42137] Raise an ImportWarning for calling module_repr() on loaders

2020-10-23 Thread Brett Cannon
New submission from Brett Cannon : Once all traces of module_repr() are gone, raise an `ImportWarning` when using `module_repr()`. Once this is implemented and has been out in the wild for a sufficient amount of time, it should be switching to a DeprecationWarning and then the fallback event

[issue42137] Raise an ImportWarning for calling module_repr() on loaders

2020-10-23 Thread Brett Cannon
Change by Brett Cannon : -- dependencies: +[importlib] deprecate module_repr() methods ___ Python tracker ___ ___ Python-bugs-list m

[issue41950] Typo in Python 3.9 what's new page

2020-10-23 Thread Weiliang Li
Weiliang Li added the comment: Thank you, our hardworking BDFL! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue38953] Untokenize and retokenize does not round-trip

2020-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Zac, thank you for Hypothesmith. I am thinking about how to maybe use it to test certain IDLE functions. But your 2nd example, as posted, does not compile, even with 3.8. Typo? Thank you also for the two failure examples. I worked on untokenize in 2013 a

[issue41950] Typo in Python 3.9 what's new page

2020-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset dc33f798139016961fba33b37c792c690399b2b6 by Weiliang Li in branch '3.9': bpo-41950: Typo in Python 3.9 what's new page (GH-22573) https://github.com/python/cpython/commit/dc33f798139016961fba33b37c792c690399b2b6 -- _

[issue41950] Typo in Python 3.9 what's new page

2020-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks, merged, so closing. I'll open a separate issue regarding the forward-porting of the 3.9 whatsnew. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue42138] Forward port Doc/whatsnew/3.9.rst to master

2020-10-23 Thread Guido van Rossum
New submission from Guido van Rossum : We discovered in issue41950 that the whatsnew/3.9.rst files differ quite a bit between 3.9 and master. IIUC this is (mostly) because Lukasz made a big pass updating it on occasion of the 3.9.0 release, and he did that in the 3.9 branch: https://github.com

[issue42111] Make the xxlimited module an example of best extension module practices

2020-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would interpret the limited pydev response (1 person, whose concern you incorporated into your post) to indicate absence of opposition. Given that 384 was written by someone inactive for years, I say go ahead and submit a PR for review by any interested a

[issue42138] Forward port Doc/whatsnew/3.9.rst to master

2020-10-23 Thread Guido van Rossum
Change by Guido van Rossum : -- keywords: +patch pull_requests: +21853 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22933 ___ Python tracker ___

[issue42116] Inspect library ignore comments at the end of a function (inspect.getsource)

2020-10-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue35823] Use vfork() in subprocess on Linux

2020-10-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 976da903a746a5455998e9ca45fbc4d3ad3479d8 by Alexey Izbyshev in branch 'master': bpo-35823: subprocess: Use vfork() instead of fork() on Linux when safe (GH-11671) https://github.com/python/cpython/commit/976da903a746a5455998e9ca45fbc4d3ad3479

[issue35823] Use vfork() in subprocess on Linux

2020-10-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: now waiting to see how happy all of the buildbots are... We currently have a `__linux__` check in the code deciding VFORK_USABLE. >From what I can tell, vfork probably also works on macOS (darwin). Lets let this run for a bit on Linux and it can be a separ

[issue42121] unable to input certain Unicode characters in Text widget

2020-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am closing this because I am rather sure that your problem is with your input method and its interaction with your OS and the tcl/tk GUI framework. Tkinter has essentially nothing to do with key and mouse input. A better place to ask for debugging help is

[issue38953] Untokenize and retokenize does not round-trip

2020-10-23 Thread Zac Hatfield-Dodds
Zac Hatfield-Dodds added the comment: Thanks for your comments Terry - I'm delighted that it's useful. It's been a while since I wrote that, and entirely possible that it's just a typo. Hypothesis does indeed support unittest, including for multiple-failure reporting and so on. You can se

[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2020-10-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +21854 pull_request: https://github.com/python/cpython/pull/22934 ___ Python tracker ___ ___

[issue35823] Use vfork() in subprocess on Linux

2020-10-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: > * To avoid repeating long parameter lists in several functions, we can move > them to a struct. The downside is that we'd need to convert child_exec() to > use that struct all over the place. I don't have a strong preference here. Agreed that the long pa

[issue42123] Run parser twice; enable invalid_* rules only on the second run

2020-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since I do a lot of interactive compiling, I appreciate faster feedback. How much will the slowdown be on errors? -- nosy: +terry.reedy title: Run the two times, only enable invalid_* rules on the second run -> Run parser twice; enable invalid_* rul

[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2020-10-23 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +21855 pull_request: https://github.com/python/cpython/pull/22935 ___ Python tracker

[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2020-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 8e5b0fdce337ef0a1f4f38b31a8c6b66c56b16d2 by Raymond Hettinger in branch 'master': bpo-19072: Update descriptor howto for decorator chaining (GH-22934) https://github.com/python/cpython/commit/8e5b0fdce337ef0a1f4f38b31a8c6b66c56b16d2 ---

[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2020-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset c17f63fae57dc02e78bd6931b8fb6c6c2f9d4d81 by Miss Skeleton (bot) in branch '3.9': bpo-19072: Update descriptor howto for decorator chaining (GH-22934) (GH-22935) https://github.com/python/cpython/commit/c17f63fae57dc02e78bd6931b8fb6c6c2f9d4d81

[issue35823] Use vfork() in subprocess on Linux

2020-10-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thank you for taking this on! I'm calling it fixed for now as the buildbots are looking happy with it. If issues with it arise we can address them. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed _

[issue35181] Doc: Namespace Packages: Inconsistent documentation of __loader__ being None

2020-10-23 Thread Géry
Géry added the comment: Thanks @barry for reviewing and merging PR 15190 > I haven't merged PR 10016, but I left some additional comments. Are you > still interested in shepherding this PR? Also thanks for helping me with @ericsnowcurrently advancing this last PR. Yes I am still interested,

[issue42139] Synchronize What's New in 3.9 master and 3.9

2020-10-23 Thread Terry J. Reedy
New submission from Terry J. Reedy : Continuation of #41808, #41950, 9cf6752276e6fcfd0c23fdb064ad27f448aaaf75 (Langa, no diff). Attached is a current diff (about 1/2 hour ago). It appears to be all or almost all Langa's release edits in 9cf6752276e6fcfd0c23fdb064ad27f448aaaf75. The importa

[issue41950] Typo in Python 3.9 what's new page

2020-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: See #42139 -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue42139] Synchronize What's New in 3.9 master and 3.9

2020-10-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +21856 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/22936 ___ Python tracker ___ ___

[issue42070] Revisit IsoCalendarDate being private from pickle perspective

2020-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: If this point I suggest asking on pydev, maybe after you think more about how you want it to be for the next decade. If the behavior is intentional and the doc says nothing, one might consider the behavior the 'document'. Hence deprecation might be needed.

[issue42139] Synchronize What's New in 3.9 master and 3.9

2020-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 805ef73ad0ac4a77f3764dd17dfc959d562ce627 by Terry Jan Reedy in branch 'master': bpo-42139: Update What's New 3.9 for master (#22936) https://github.com/python/cpython/commit/805ef73ad0ac4a77f3764dd17dfc959d562ce627 -- __

[issue42138] Forward port Doc/whatsnew/3.9.rst to master

2020-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: Terry did the same thing in https://bugs.python.org/issue42139. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue42139] Synchronize What's New in 3.9 master and 3.9

2020-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: You also need to forward-port https://bugs.python.org/issue41950. -- ___ Python tracker ___ ___

[issue42139] Synchronize What's New in 3.9 master and 3.9

2020-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: Never mind, I read the diff backwards. You're all good and you can close this. -- ___ Python tracker ___ __

[issue42139] Synchronize What's New in 3.9 master and 3.9

2020-10-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue38523] ignore_dangling_symlinks in shutil.copytree does not apply recursively

2020-10-23 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 1.0 -> 2.0 pull_requests: +21857 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22937 ___ Python tracker

[issue40841] Provide mimetypes.sniff API as stdlib

2020-10-23 Thread Dong-hee Na
Dong-hee Na added the comment: @gvanrossum, @taleinat I've already provided the mimesniffing through PyPI ;) https://pypi.org/project/mimesniff/ The interface is similar to imghdr.what :) -- ___ Python tracker

[issue24165] Free list for single-digits ints

2020-10-23 Thread Inada Naoki
Inada Naoki added the comment: I close this issue for now. Please reopen or create a new issue if you came up with better idea. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.7 __

[issue42140] asyncio.wait function creates futures set two times

2020-10-23 Thread Diogo Dutra
New submission from Diogo Dutra : The python3.9 code creates the futures set two times. We can create this set before, avoiding the second creation. This python3.9 behaviour breaks the aiokafka library, because it gives an iterator to that function, so the second iteration become empty. -

<    1   2