[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

[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

[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 ___

[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 Guido van Rossum
Guido van Rossum added the comment: You also need to forward-port https://bugs.python.org/issue41950. -- ___ Python tracker ___

[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: 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 --

[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 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 ___

[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

[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

[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

[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

[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)

[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 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

[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_*

[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

[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 ___

[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

[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

[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

[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)

[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:

[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

[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

[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:

[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

[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

[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 Weiliang Li
Weiliang Li added the comment: Thank you, our hardworking BDFL! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[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

[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

[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:

[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:

[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 ___

[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 ___ ___

[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:

[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

[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:

[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

[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

[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

[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 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 ___

[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 ___

[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

[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:

[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

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

2020-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: Oh, I see. Łukasz (@ambv) prepared the 3.9.0 release and didn't merge his changes into master yet. I'll contact him. -- nosy: +lukasz.langa ___ Python tracker

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

2020-10-23 Thread Weiliang Li
Weiliang Li added the comment: The diff is here: https://gist.github.com/kigawas/c0c3900e5f56552f13160c7989612c28 Looks like it is not trivial. And the commit at branch 3.9 is:

[issue42132] Use specs instead of just __loader__ in C code

2020-10-23 Thread Brett Cannon
New submission from Brett Cannon : _warnings.c, pylifecycle.c, and pythonrun.c all either use or set `__loader__` but without also falling back on `__spec__`. -- components: Interpreter Core messages: 379483 nosy: brett.cannon priority: normal severity: normal status: open title: Use

[issue42070] Revisit IsoCalendarDate being private from pickle perspective

2020-10-23 Thread Paul Ganssle
Paul Ganssle added the comment: I'm glad that Terry brought up documentation, though, because I realized that this is not a documented behavior: https://docs.python.org/3/library/datetime.html#datetime.date.isocalendar We should maybe document it? Though if we document it it might be

[issue42131] [zipimport] Update zipimport to use specs

2020-10-23 Thread Brett Cannon
New submission from Brett Cannon : zipimport only supports old PEP 302 APIs and not PEP 451 module specs (i.e. it uses load_module() instead of create_module()/exec_module(), find_mdoule() instead of find_spec()). Uses of both load_module() and find_module() are documented as deprecated for

[issue42070] Revisit IsoCalendarDate being private from pickle perspective

2020-10-23 Thread Paul Ganssle
Paul Ganssle added the comment: Even if it were accidental (and it wasn't — it was actually somewhat difficult to achieve), I'd still argue for not changing it in 3.9, because it would mean that pickles created in 3.9.(n+1) would not be readable in 3.9.n. Still, I don't think I'd be

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

2020-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Essentially it means that types using cached_property are less > likely to enjoy the benefits of shared keys. I don't think anything can be done about it. @cached_property and key-sharing dicts are intrinsically at odds with one another. Likewise,

[issue40592] `Shutil.which` incosistent with windows's `where`

2020-10-23 Thread miss-islington
miss-islington added the comment: New changeset c437fe39cf5318f27f3381a983fbf320f65064bc by Miss Skeleton (bot) in branch '3.9': [3.9] bpo-40592: shutil.which will not return None anymore if ; is the last char in PATHEXT (GH-20088) (GH-22912)

[issue40592] `Shutil.which` incosistent with windows's `where`

2020-10-23 Thread miss-islington
miss-islington added the comment: New changeset 8b4842b7a830299870067bba59f53529b13647a2 by Miss Skeleton (bot) in branch '3.8': [3.8] bpo-40592: shutil.which will not return None anymore if ; is the last char in PATHEXT (GH-20088) (GH-22913)

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2020-10-23 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: I've narrowed down the traverse problems to Py_VISIT(state->CacheType). Suspecting this has to do with the cyclic references in cache/connection. Preliminary tests with GC tracking `cache->factory` look promising, but this is a part of the C API

[issue41835] Speed up dict vectorcall creation using keywords

2020-10-23 Thread Marco Sulla
Marco Sulla added the comment: @Mark.Shannon I tried to run pyperformance, but wheel does not work for Python 3.10. I get the error: AssertionError: would build wheel with unsupported tag ('cp310', 'cp310', 'linux_x86_64') -- ___ Python tracker

[issue34976] IDLE: Replace the search dialog with a search bar

2020-10-23 Thread Tal Einat
Tal Einat added the comment: Thanks Mark, your feedback is greatly appreciated! -- ___ Python tracker ___ ___ Python-bugs-list

[issue34976] IDLE: Replace the search dialog with a search bar

2020-10-23 Thread Tal Einat
Tal Einat added the comment: > Why would having all 'a's on a page light up when I type 'a' be a plus? The auto-highlighting could be disabled for 1-2 character search queries, or delayed for a bit to allow typing to continue. I find auto-highlighting very useful when I'm looking for "where

[issue34394] Descriptors HowTo doesn't mention __set_name__

2020-10-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 -Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue42075] Verbose/confusing default format on warnings

2020-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: An application *can* change warnings. See lib/idlelib/run for an example. Library code should not make changes as they will be global or overwritten. A project that is both can restrict the changes to when run as main module. -- nosy:

[issue41100] Build failure on macOS 11 (beta)

2020-10-23 Thread Ronald Oussoren
Change by Ronald Oussoren : -- pull_requests: +21849 pull_request: https://github.com/python/cpython/pull/21114 ___ Python tracker ___

[issue41101] Support "arm64" in Mac/Tools/pythonw

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: This change is part of the active PR in #41100. Therefore closing this issue. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed superseder: -> Build failure on macOS 11 (beta) type: -> enhancement

[issue40841] Provide mimetypes.sniff API as stdlib

2020-10-23 Thread Tal Einat
Tal Einat added the comment: > Dong-hee, I recommend that you turn this into a 3rd party package on PyPI > yourself. +1 -- ___ Python tracker ___

[issue42074] setup error on windows

2020-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for attaching the log instead of including it inline. But when you reply by email, please delete the message you are responding too, as it duplicates the original already on the web page. The first error in the log is a failure to make a restore

[issue23797] Mac OS X locale setup in thread happens sometime after run() is called

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm closing this issue as "works for me". Please re-open if there is more information on how to reproduce the problem. -- resolution: -> works for me stage: -> resolved status: open -> closed type: -> behavior

[issue23797] Mac OS X locale setup in thread happens sometime after run() is called

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've been using the scriptlet below to try to attempt to reproduce the problem. I'm not sure if this matches the way the program of the OP is set up. The scriptlet below works for me without problems (macOS 10.15, Python 3.4 - 3.9). This either means the

[issue42070] Revisit IsoCalendarDate being private from pickle perspective

2020-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: If the current situation is not a bug, a mismatch between behavior and doc, a change would be an enhancement limited to the next release. -- nosy: +terry.reedy title: I think the rationale to keep IsoCalendarDate private from the pickle perspective

[issue21032] Socket leak if HTTPConnection.getresponse() fails

2020-10-23 Thread Felipe Rodrigues
Change by Felipe Rodrigues : -- nosy: +fbidu nosy_count: 3.0 -> 4.0 pull_requests: +21848 pull_request: https://github.com/python/cpython/pull/22737 ___ Python tracker ___

[issue13464] HTTPResponse is missing an implementation of readinto

2020-10-23 Thread Felipe Rodrigues
Change by Felipe Rodrigues : -- nosy: +fbidu nosy_count: 5.0 -> 6.0 pull_requests: +21847 pull_request: https://github.com/python/cpython/pull/22737 ___ Python tracker ___

[issue42058] Process not running with args

2020-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: bpo is the issue tracker for patching the python cpython repository. We support running python from system command line terminals and icons that we install, as specified in the CPython docs. Ask questions about running python otherwise on other forums.

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2020-10-23 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Aside: I noticed that on _parseaddr.py:68, there's a bare `return`. That should really be `return None` (EIBTI). Can you fix that in your PR? I think it's confusing to raise both TypeError and ValueError. I suggest we check the `None` return from

[issue3760] PEP 3121 --- PyType_Copy is missing

2020-10-23 Thread Petr Viktorin
Petr Viktorin added the comment: The need is covered by PEP 384's PyType_FromSpec (and later additions, the latest being PyType_FromModuleAndSpec). Thanks for closing! -- nosy: +petr.viktorin ___ Python tracker

[issue38870] Expose ast.unparse in the ast module

2020-10-23 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38870] Expose ast.unparse in the ast module

2020-10-23 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Well, I'm happy to say that 3.9.0 is finally released with the ast.unparse interface. After tens of PRs, I think it is time for us to move on. For all future bugs, please create a new issue and nosy me. Thanks everyone who has participated this journey!

[issue40841] Provide mimetypes.sniff API as stdlib

2020-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: Dong-hee, I recommend that you turn this into a 3rd party package on PyPI yourself. That way your effort and code will live on! -- ___ Python tracker

[issue614557] LookupError etc. need API to get the key

2020-10-23 Thread Irit Katriel
Change by Irit Katriel : -- versions: -Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40841] Provide mimetypes.sniff API as stdlib

2020-10-23 Thread Dong-hee Na
Dong-hee Na added the comment: I close this issue as rejected! During the sprint, I could hear a lot of opinions from core devs including Guido, Tal, and Christian. The overall conclusion for me is not to add this time. if the mimetypes module is extracted from stdlib to pypi package, we

[issue16094] Tuple extraction in a lambda isn't supported by 2to3

2020-10-23 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> wont fix stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue42122] macOS complains about how fonts are accessed

2020-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm going to mark this as closed, not a bug. If you're not seeing the same result, it is almost certainly an issue with my local build. -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue41835] Speed up dict vectorcall creation using keywords

2020-10-23 Thread Marco Sulla
Marco Sulla added the comment: @methane: well, to be honest, I don't see much difference between the two pulls. The major difference is that you merged insertdict_init in dict_merge_init. But I kept insertdict_init separate on purpose, because this function can be used in other future

[issue26131] Raise ImportWarning when loader.load_module() is used

2020-10-23 Thread Brett Cannon
Change by Brett Cannon : -- stage: test needed -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42129] Support resources in namespace packages

2020-10-23 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: There really shouldn't be any differences between that doc in the 3.9 and master branch (with rare exceptions). Can you post a diff here between the two so we can sort it out? Also can you find the commit where it was added to the 3.9 branch? --

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

2020-10-23 Thread Weiliang Li
Weiliang Li added the comment: The whole CONTAINS_OP stuff is gone in master, but it's still there in 3.9 branch. I don't know why. Any plan to resolve the discrepancy? -- ___ 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: Hm, I guess my repo is out of date. Sorry. So it is in master? Let's fix it there then. -- resolution: out of date -> stage: resolved -> needs patch status: closed -> open versions: +Python 3.10 ___ Python

[issue42130] AsyncIO's wait_for can hide cancellation in a rare race condition

2020-10-23 Thread Taras Voinarovskyi
New submission from Taras Voinarovskyi : Hi, during migration to Python 3.8.6 we encountered a behavior change from previous versions: wait_for ignored the request to cancellation and returned instead. After investigation, it seems to be related to the update in bpo-32751 and is only

[issue42129] Support resources in namespace packages

2020-10-23 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-10-23 Thread Weiliang Li
Weiliang Li added the comment: And the "What’s New In Python 3.9" page (updated today): https://docs.python.org/3/whatsnew/3.9.html#cpython-bytecode-changes -- ___ Python tracker

[issue25509] PyImport_ImportModule inaccurately described

2020-10-23 Thread Brett Cannon
Brett Cannon added the comment: The docs for PyImport_ImportModule() is https://docs.python.org/3/c-api/import.html?highlight=pyimport_importmodule#c.PyImport_ImportModule and https://github.com/python/cpython/blob/master/Doc/c-api/import.rst. -- keywords: +easy (C) -easy

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

2020-10-23 Thread Weiliang Li
Weiliang Li added the comment: It's here https://github.com/python/cpython/blob/3.9/Doc/whatsnew/3.9.rst#cpython-bytecode-changes Just several pixels below -- ___ Python tracker

[issue42129] Support resources in namespace packages

2020-10-23 Thread Jason R. Coombs
New submission from Jason R. Coombs : In [importlib_resources#68](https://github.com/python/importlib_resources/issues/68), the project identified a deficiency with respect to pkg_resources for resources in namespace packages. The project has since merged support for these packages, slated

[issue42122] macOS complains about how fonts are accessed

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: Could you check "/tmp/py310/bin/python3 -m test.pythoninfo | grep -i tk". If that says your using Tk 8.5 you're almost certainly using the system version. You could also check _tkinter itself: otool -vL

[issue41434] IDLE: Option to warn user on "Run Module" if file is not Python source

2020-10-23 Thread Mark Roseman
Mark Roseman added the comment: I like Terry's idea of providing a better error message than just "invalid syntax" when we run something that likely isn't a Python file. There doesn't seem to be any great danger in trying to run any file that would justify a warning beforehand. --

[issue42122] macOS complains about how fonts are accessed

2020-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm only Catalina 10.15.7 and am using a local build constructed with: ./configure --with-openssl=$(brew --prefix openssl) && make Perhaps that is using the system Tk and we don't need to worry about this. --

[issue13139] multiprocessing.map skips finally blocks

2020-10-23 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> needs patch versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3 ___ 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: Honestly I don't see it in the 3.9 branch either. It seems the whole section mentioned in the closed PR doesn't exist anywhere. Maybe it was reverted for some reason. Let's close this issue. -- resolution: -> out of date stage: patch review ->

  1   2   >