[issue40973] platform.platform() in Python 3.8 does not report detailed Linux platform information

2020-06-13 Thread Ben Du
New submission from Ben Du : The function platform.platform() does not report detailed Linux platform information (Ubuntu, Debain, CentOS, etc). This information is reported in Python 3.7 and earlier. -- components: Library (Lib) messages: 371488 nosy: legendu priority: normal

[issue36470] dataclasses.replace raises an exception if InitVar with default argument is not provided.

2020-06-13 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz nosy_count: 4.0 -> 5.0 pull_requests: +20056 pull_request: https://github.com/python/cpython/pull/20867 ___ Python tracker ___

[issue33315] Allow queue.Queue to be used in type annotations

2020-06-13 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed status: open -> closed versions: +Python 3.9 ___ Python tracker ___ ___

[issue40972] Add a recurse flag to Path.rmdir()

2020-06-13 Thread Charles Machalow
New submission from Charles Machalow : I think it would make sense to add a recurse flag to the Path.rmdir() method. It would default to False (to allow for current behavior). If set to True, the method would act very similarly to shutil.rmtree() in that it would delete all files in the

[issue33315] Allow queue.Queue to be used in type annotations

2020-06-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Leaving this for Guido or Ivan to decide whether this feature request is fully satisfied now. -- resolution: fixed -> status: closed -> open ___ Python tracker

[issue33315] Allow queue.Queue to be used in type annotations

2020-06-13 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-06-13 Thread Fantix King
Fantix King added the comment: Oh thank you for the clue, that's super helpful! Let me try locally. This fix PR was originally done to solve a hanging call in a race condition, so the test would hang forever if the fix is not working as expected. The 10 seconds wait_for() is to make sure

[issue33315] Allow queue.Queue to be used in type annotations

2020-06-13 Thread Ethan Smith
Ethan Smith added the comment: This was done in https://github.com/python/cpython/pull/19423 The implementation is as Raymond suggests: https://github.com/python/cpython/blame/5aad027db9618f22f6fa2274e05dd50f928d2ed7/Lib/queue.py#L220 On Sat, Jun 13, 2020 at 8:58 PM Raymond Hettinger wrote:

[issue33315] Allow queue.Queue to be used in type annotations

2020-06-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can this can now be handled with "__class_getitem__ = classmethod(GenericAlias)"? -- type: -> behavior versions: +Python 3.10 -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue40970] Error in Python Datamodel Documentation

2020-06-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, the word "built-in" is being used in two different ways here. It is used in a strict sense for sys.builtin_module_names and in a general sense in the datamodel docs. The former only includes modules compiled into the core exe or dll file. The

[issue40970] Error in Python Datamodel Documentation

2020-06-13 Thread Christopher Yeh
Christopher Yeh added the comment: Here's the output from my terminal comparing the `math` standard library module (not always built-in) against the `sys` standard library module (always built-in). On Windows 10 x64, WSL 1, Ubuntu 18.04.02 LTS, Python 3.7.7 installed via conda: math is not

[issue40970] Error in Python Datamodel Documentation

2020-06-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: What happens when you type, "import math" and "print(type(math))"? -- nosy: +rhettinger ___ Python tracker ___

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-06-13 Thread Kyle Stanley
Kyle Stanley added the comment: I believe that I might have identified a simple fix for the issue, but first I'd like to clarify on something: What exactly is the reason that we need to use asyncio.wait_for() with a timeout of 10 seconds in these tests? We typically avoid using short

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-06-13 Thread Kyle Stanley
Kyle Stanley added the comment: I was able to replicate the failure locally by running the large number of jobs in parallel. We typically use this to test for tricky race conditions, to simulate maximum load: [aeros:~/repos/cpython]$ ./python -m test test_asyncio.test_sock_lowlevel --match

[issue40855] statistics.stdev ignore xbar argument

2020-06-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the bug report  -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40855] statistics.stdev ignore xbar argument

2020-06-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 811e040b6e0241339545c2f055db8259b408802f by Miss Islington (bot) in branch '3.8': bpo-40855: Fix ignored mu and xbar parameters (GH-20835) (GH-20863) https://github.com/python/cpython/commit/811e040b6e0241339545c2f055db8259b408802f

[issue40855] statistics.stdev ignore xbar argument

2020-06-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 55c1d21761e2e5feda5665065ea9e2280fa76113 by Miss Islington (bot) in branch '3.9': bpo-40855: Fix ignored mu and xbar parameters (GH-20835) (#GH-20862) https://github.com/python/cpython/commit/55c1d21761e2e5feda5665065ea9e2280fa76113

[issue40971] Documentation still mentions 'u' string formatting option

2020-06-13 Thread Gordon P. Hemsley
New submission from Gordon P. Hemsley : https://docs.python.org/3/library/stdtypes.html#old-string-formatting still lists the 'u' string formatting option, described as "Obsolete type – it is identical to 'd'." and linking to PEP 237. However, testing indicates that Python 3 does not support

[issue40970] Error in Python Datamodel Documentation

2020-06-13 Thread Christopher Yeh
New submission from Christopher Yeh : The documentation says the following: > A built-in function object is a wrapper around a C function. Examples of > built-in functions are `len` and `math.sin` (`math` is a standard built-in > module). However, `math` is not always a built-in module, as

[issue40900] uuid module build fix on FreeBSD proposal

2020-06-13 Thread Tiago Illipronti Girardi
Tiago Illipronti Girardi added the comment: The problem isn't exclusive to FreeBSD. There are at least 3 problems here (see also: issue 32627). -First is that there are 2 low-level uuid interfaces (3 if you count Windows but that is isolated and not a problem here) supposed to be declared

[issue40855] statistics.stdev ignore xbar argument

2020-06-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +20054 pull_request: https://github.com/python/cpython/pull/20863 ___ Python tracker ___

[issue40855] statistics.stdev ignore xbar argument

2020-06-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +20053 pull_request: https://github.com/python/cpython/pull/20862 ___ Python tracker

[issue40855] statistics.stdev ignore xbar argument

2020-06-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset d71ab4f73887a6e2b380ddbbfe35b600d236fd4a by Raymond Hettinger in branch 'master': bpo-40855: Fix ignored mu and xbar parameters (GH-20835) https://github.com/python/cpython/commit/d71ab4f73887a6e2b380ddbbfe35b600d236fd4a --

[issue37674] Is imp module deprecated or pending deprecation?

2020-06-13 Thread miss-islington
miss-islington added the comment: New changeset e1ca0c530104bd1e9fa61c167f267e6ca58a798a by Miss Islington (bot) in branch '3.7': [3.7] bpo-37674: Tweak imp module deprecation note in the docs (GH-20480) (GH-20861)

[issue37674] Is imp module deprecated or pending deprecation?

2020-06-13 Thread miss-islington
miss-islington added the comment: New changeset f8c05bb3a6f25224d7767561ec6a36a737e17779 by Miss Islington (bot) in branch '3.8': [3.8] bpo-37674: Tweak imp module deprecation note in the docs (GH-20480) (GH-20860)

[issue37674] Is imp module deprecated or pending deprecation?

2020-06-13 Thread miss-islington
miss-islington added the comment: New changeset bda4cc82de06490d982e199e5e49aaed390461ba by Miss Islington (bot) in branch '3.9': [3.9] bpo-37674: Tweak imp module deprecation note in the docs (GH-20480) (GH-20859)

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-06-13 Thread Fantix King
Fantix King added the comment: I've been testing on local VMs with Gentoo and Ubuntu, but the issue cannot be reproduced. The error log is not really revealing anything useful, other than that the send was blocked when it was supposed to be successful. As it is not constantly failing on

[issue40893] tkinter integrate TkDND support

2020-06-13 Thread E. Paine
Change by E. Paine : -- nosy: +ned.deily, steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37674] Is imp module deprecated or pending deprecation?

2020-06-13 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37674] Is imp module deprecated or pending deprecation?

2020-06-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +20050 pull_request: https://github.com/python/cpython/pull/20859 ___ Python tracker ___

[issue37674] Is imp module deprecated or pending deprecation?

2020-06-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +20052 pull_request: https://github.com/python/cpython/pull/20861 ___ Python tracker ___

[issue37674] Is imp module deprecated or pending deprecation?

2020-06-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +20051 pull_request: https://github.com/python/cpython/pull/20860 ___ Python tracker ___

[issue37674] Is imp module deprecated or pending deprecation?

2020-06-13 Thread miss-islington
miss-islington added the comment: New changeset dea3223740127ac13f984c1d38f127ab6701af44 by Zackery Spytz in branch 'master': bpo-37674: Tweak imp module deprecation note in the docs (GH-20480) https://github.com/python/cpython/commit/dea3223740127ac13f984c1d38f127ab6701af44 --

[issue40948] Better identify Windows installer as installer only, not runner

2020-06-13 Thread Mats Wichmann
Mats Wichmann added the comment: > py.exe is preferred *if* one starts python from a command line. I'm not a habitual Windows user (a certain project is making me spend way more time there than usual), but if I start typing python to a Windows search, after the first two letters the

[issue40969] Python 3.8.3 And Now For Something CompletelyDifferent

2020-06-13 Thread Keith Spitz
New submission from Keith Spitz : For the totally unimportant list... On the Python 3.8.3 release page (https://www.python.org/downloads/release/python-383/), Mr. Anemone was actually played by Graham Chapman and not John Cleese (https://montypython.fandom.com/wiki/Flying_Lessons).

[issue33881] dataclasses should use NFKC to find duplicate members

2020-06-13 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with Raymond. There's no real harm being caused here. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40948] Better identify Windows installer as installer only, not runner

2020-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mats, thank you for chiming in. py.exe is preferred *if* one starts python from a command line. Some beginners have never seen one or know what it is. This is most likely to be true of people who don't know 'installer' from 'launcher'. The installer is

[issue32631] IDLE: revise zzdummy.py

2020-06-13 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: +Python 3.10, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue40957] _Py_fopen_obj leaks reference on audit error

2020-06-13 Thread Dong-hee Na
Dong-hee Na added the comment: Thanks for the work! Christian Heimes -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40957] _Py_fopen_obj leaks reference on audit error

2020-06-13 Thread miss-islington
miss-islington added the comment: New changeset c932f5c1e531f5a3cbf0ce664e4bcd22aa04994d by Miss Islington (bot) in branch '3.9': bpo-40957: Fix refleak in _Py_fopen_obj() (GH-20827) https://github.com/python/cpython/commit/c932f5c1e531f5a3cbf0ce664e4bcd22aa04994d --

[issue40957] _Py_fopen_obj leaks reference on audit error

2020-06-13 Thread miss-islington
miss-islington added the comment: New changeset a8936fa5c09c039ad457dda8bdf733be6cc182e3 by Miss Islington (bot) in branch '3.8': bpo-40957: Fix refleak in _Py_fopen_obj() (GH-20827) https://github.com/python/cpython/commit/a8936fa5c09c039ad457dda8bdf733be6cc182e3 --

[issue40924] Recent importlib change breaks most recent certifi == 2020.4.5.2

2020-06-13 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +20049 pull_request: https://github.com/python/cpython/pull/20857 ___ Python tracker ___

[issue40957] _Py_fopen_obj leaks reference on audit error

2020-06-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +20047 pull_request: https://github.com/python/cpython/pull/20855 ___ Python tracker

[issue40957] _Py_fopen_obj leaks reference on audit error

2020-06-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +20048 pull_request: https://github.com/python/cpython/pull/20856 ___ Python tracker ___

[issue40957] _Py_fopen_obj leaks reference on audit error

2020-06-13 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 9672912e8f90374fd31b37ca0fb7cefbc6f4c555 by Christian Heimes in branch 'master': bpo-40957: Fix refleak in _Py_fopen_obj() (GH-20827) https://github.com/python/cpython/commit/9672912e8f90374fd31b37ca0fb7cefbc6f4c555 -- nosy: +corona10

[issue33393] update config.guess and config.sub

2020-06-13 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +20046 pull_request: https://github.com/python/cpython/pull/20854 ___ Python tracker ___

[issue40948] Better identify Windows installer as installer only, not runner

2020-06-13 Thread Mats Wichmann
Mats Wichmann added the comment: "on python-list and probably elsewhere"... I can confirm these questions get mailed to webmas...@python.org :) A couple of comments since I see these fairly frequently: The "using" doc page may have too much information for beginner tastes, but at least

[issue40925] Remove redundant macros used for stack manipulation in interpreter

2020-06-13 Thread Mark Shannon
Mark Shannon added the comment: Dennis, thanks for doing the benchmarking. You seem to have removed rather more macros than I suggested, but it probably won't make much difference to the results. Since this may have a negative effect on performance and doesn't seem to be popular, let's drop

[issue40925] Remove redundant macros used for stack manipulation in interpreter

2020-06-13 Thread Mark Shannon
Change by Mark Shannon : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue40834] sending str via channel caused truncate on last character

2020-06-13 Thread miss-islington
miss-islington added the comment: New changeset 94bb4b7db2a4eadd299acede204b087aca30c9a2 by Miss Islington (bot) in branch '3.9': bpo-40834: Fix truncate when sending str object with channel (GH-20555) https://github.com/python/cpython/commit/94bb4b7db2a4eadd299acede204b087aca30c9a2

[issue40834] sending str via channel caused truncate on last character

2020-06-13 Thread miss-islington
miss-islington added the comment: New changeset 26db10a431bf5b55340f4427bf015719e384d306 by Miss Islington (bot) in branch '3.8': bpo-40834: Fix truncate when sending str object with channel (GH-20555) https://github.com/python/cpython/commit/26db10a431bf5b55340f4427bf015719e384d306

[issue40834] sending str via channel caused truncate on last character

2020-06-13 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40834] sending str via channel caused truncate on last character

2020-06-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +20044 pull_request: https://github.com/python/cpython/pull/20852 ___ Python tracker

[issue40834] sending str via channel caused truncate on last character

2020-06-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +20045 pull_request: https://github.com/python/cpython/pull/20853 ___ Python tracker ___

[issue40834] sending str via channel caused truncate on last character

2020-06-13 Thread miss-islington
miss-islington added the comment: New changeset 29c117202e386bad1d66ae336e2fefa1a1809ee0 by An Long in branch 'master': bpo-40834: Fix truncate when sending str object with channel (GH-20555) https://github.com/python/cpython/commit/29c117202e386bad1d66ae336e2fefa1a1809ee0 --

[issue39710] "will be returned as unicode" reminiscent from Python 2

2020-06-13 Thread Cheryl Sabella
Cheryl Sabella added the comment: @Chitrank-Dixit, thank you for your interest in contributing to CPython. When looking for an issue to work on, please check that a pull request isn't already open against it. If there is an open PR, you can contribute by doing a code review. Please refer

[issue40967] asyncio.Task.all_tasks() and asyncio.Task.current_task() must be removed in 3.9

2020-06-13 Thread Kyle Stanley
Kyle Stanley added the comment: Thanks for bringing attention to this Rémi. I'm a bit concerned that it might be a bit late into the 3.9 beta to incorporate a removal and that we might need to consider delaying to 3.10, but I'll leave that up to Lukasz. Feel free to open a PR in the

[issue40968] urllib is unable to deal with TURN server infront

2020-06-13 Thread Paul Menzel
New submission from Paul Menzel : Having the TURN server Coturn [1] set up in a Jitsi Meet installation, Python’s urllib requests fail, while it works with cURL and browsers. ``` $ curl -I https://jitsi.molgen.mpg.de HTTP/2 200 server: nginx/1.14.2 date: Sat, 13 Jun 2020 11:09:19 GMT

[issue40967] asyncio.Task.all_tasks() and asyncio.Task.current_task() must be removed in 3.9

2020-06-13 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : The documentation says: .. deprecated-removed:: 3.7 3.9 Do not call this as a task method. Use the :func:`asyncio.all_tasks` function instead. I don't know if it's still possible to merge this in 3.9 and if so, if it should be a

[issue40894] asyncio.gather() cancelled() always False

2020-06-13 Thread Timm Wagener
Timm Wagener added the comment: Proposed changes are done and test coverage is extended. I had to change one previous test slightly *(test_one_cancellation())*, which seems in line though, with the proposed behavior. -- ___ Python tracker

[issue40925] Remove redundant macros used for stack manipulation in interpreter

2020-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I could understand wanting to replace TOP,...,FOURTH with PEEK(n) and the SET_XYZs with the now deleted SET(_VALUE)(n, v), but to me, replacing PEEK-SET with POPs and PUSHes (in different orders) that directly mean something different but that compilers

[issue37910] argparse wrapping fails with metavar="" (no metavar)

2020-06-13 Thread hai shi
hai shi added the comment: LGTM. It's a lightweight patch :) -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list

[issue40905] IDLE relabel Save-on-close buttons

2020-06-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE relabel Save on close -> IDLE relabel Save-on-close buttons ___ Python tracker ___ ___

[issue40893] tkinter integrate TkDND support

2020-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Easiest is to install 'blurb' and use that to write news entries. See https://docs.python.org/3/whatsnew/changelog.html#changelog for examples. The coredev who merges may changes whatever you propose. I don't think that this needs a PEP, unless Serhiy

[issue40966] Remove redundant var in PyErr_NewException

2020-06-13 Thread hai shi
hai shi added the comment: Thanks, Dong-hee Na. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22893] Idle: __future__ does not work in startup code.

2020-06-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1178] IDLE - add "paste code" functionality

2020-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would like to add 'Save code' to the Shell menu, but this would still be needed. A strip_noncode function could be shared. -- assignee: -> terry.reedy nosy: -THRlWiTi, gpolo, ronaldoussoren versions: +Python 3.10 -Python 3.2

[issue1721083] Add File - Reload

2020-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: #1175686 was not a dependency, but a duplicate closed in favor of this issue, because gpolo attached the diff here. This is obviously not a high priority, but I still want to consider it. The addition would no longer be an extension, but likely a method in

[issue40894] asyncio.gather() cancelled() always False

2020-06-13 Thread Timm Wagener
Timm Wagener added the comment: Ok, seems reasonable as well. I'll change it as proposed. -- ___ Python tracker ___ ___

[issue40966] Remove redundant var in PyErr_NewException

2020-06-13 Thread Dong-hee Na
Dong-hee Na added the comment: Merged! Thanks for the contribution! -- nosy: +corona10 resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40894] asyncio.gather() cancelled() always False

2020-06-13 Thread Kyle Stanley
Kyle Stanley added the comment: Thanks for the additional feedback, Caleb. > I think `gather()` should work the same. It would be confusing if > `future_gather.cancelled()` is false if a child is cancelled, while a plain > old outer future returns `future.cancelled() == true` if futures