[issue43758] dict.config TimedRotatingFileHandler filename .suffix does not function

2021-04-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43758] dict.config TimedRotatingFileHandler filename .suffix does not function

2021-04-06 Thread Justin Lee
New submission from Justin Lee : Hi, I would like to change the .suffix for the TimedRotatingFileHandler for the "future-created" file in dictConfig written in json. Is there any suggestion on how to do that? -- messages: 390400 nosy: tea940314 priority: normal severity: normal

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2021-04-06 Thread miss-islington
miss-islington added the comment: New changeset 1be456ae9d53bb1cba2b24fc86175c282d1c2169 by Saiyang Gou in branch 'master': bpo-38605: Update "Future statements" docs since PEP 563 is always enabled (GH-25236) https://github.com/python/cpython/commit/1be456ae9d53bb1cba2b24fc86175c282d1c2169

[issue43753] [C API] Add Py_Is(x, y) and Py_IsNone(x) functions

2021-04-06 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43220] Argparse: Explicit default required arguments with add_mutually_exclusive_group are rejected

2021-04-06 Thread Keith Smiley
Keith Smiley added the comment: Would someone be able to review this change? -- ___ Python tracker ___ ___ Python-bugs-list

[issue43757] pathlib: move 'resolve()' logic out of path flavour

2021-04-06 Thread Barney Gale
New submission from Barney Gale : Under-the-hood functionality in pathlib is divided between: - The 'flavour', which implements path syntax (separators, casefolding, etc) - The 'accessor', which accesses the local (file)system. The '_WindowsFlavour/_PosixFlavour.resolve()' function is

[issue43750] Undefined constant PACKET_MULTIHOST referred to in package socket

2021-04-06 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 2.0 -> 3.0 pull_requests: +23980 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25241 ___ Python tracker

[issue43597] robotparser should support specifying SSL context

2021-04-06 Thread Tarun Chinmai Sekar
Tarun Chinmai Sekar added the comment: I am writing a web scraper, that runs in a container that has CA-Certificates stored in a non-standard location. The Ca-Certificates are managed by Certifi. By allowing to override the sslcontext, it is possible for the user to construct a sslcontext

Re: error on os.open API

2021-04-06 Thread Eryk Sun
On 4/5/21, Rami Khaldi wrote: > > It seems that the os.open API cannot distinguish between a permission error > and the fact that a directory cannot be opened like files. > The following script reproduces the scenario (tested on Python 3.8.2 > (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC

[issue40107] pathlib: make `_Accessor.open()` return a file object and not a file descriptor

2021-04-06 Thread Barney Gale
Change by Barney Gale : -- keywords: +patch pull_requests: +23978 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25240 ___ Python tracker ___

[issue24132] Direct sub-classing of pathlib.Path

2021-04-06 Thread Barney Gale
Change by Barney Gale : -- pull_requests: +23979 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25240 ___ Python tracker ___

[issue43597] robotparser should support specifying SSL context

2021-04-06 Thread Berker Peksag
Berker Peksag added the comment: I'm not opposing to the idea, but what's the practical use case here? I haven't seen a case where you needed to pass a custom SSLContext in order to fetch the robots.txt file. -- nosy: +berker.peksag versions: -Python 3.6, Python 3.7, Python 3.8,

[issue43756] About updating audit events when function gains new arguments

2021-04-06 Thread Saiyang Gou
Change by Saiyang Gou : -- keywords: +patch pull_requests: +23977 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25239 ___ Python tracker ___

[issue43756] About updating audit events when function gains new arguments

2021-04-06 Thread Steve Dower
Steve Dower added the comment: Solution 1 is definitely out, as PyArg_ParseTuple is a very valid way to implement hooks but won't handle longer tuples. For Solution 2, we already have some events that use a slash to indicate "extra" information, so depending on context I'd either do

[issue43751] await anext() returns None when default is given

2021-04-06 Thread Dennis Sweeney
Dennis Sweeney added the comment: That change fixes that bug, but I think there may be another bug involving when a custom async iterator is passed rather than an async generator. This is at the limit of my knowledge, so any guidance would be appreciated. The test I wrote in the PR

[issue43751] await anext() returns None when default is given

2021-04-06 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch pull_requests: +23976 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25238 ___ Python tracker ___

[issue43105] [Windows] Can't import extension modules resolved via relative paths in sys.path

2021-04-06 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +23975 pull_request: https://github.com/python/cpython/pull/25237 ___ Python tracker ___

[issue40038] pathlib: remove partial support for preserving accessor when modifying a path

2021-04-06 Thread Steve Dower
Steve Dower added the comment: New changeset 2219187cab6bca009c42b63b2f4c30b5b10c916d by Barney Gale in branch 'master': bpo-40038: pathlib: remove partial support for preserving accessor when modifying a path (GH-19342)

[issue37609] support "UNC" device paths in ntpath.splitdrive

2021-04-06 Thread Eryk Sun
Eryk Sun added the comment: > I've got a fairly simple implementation for this using the (new) > nt._path_splitroot native method It's for the best to let the system path API handle this, especially if doing so gets this issue resolved, as well as others like it and those that depend on

[issue39895] `pathlib.Path.touch()` calls `os.close()` without using accessor

2021-04-06 Thread Steve Dower
Steve Dower added the comment: New changeset 986da8effcd2e9e9334ae016928ef795fb93c373 by Barney Gale in branch 'master': bpo-39895: Move `pathlib.Path.touch()` implementation into the path accessor. (GH-18838) https://github.com/python/cpython/commit/986da8effcd2e9e9334ae016928ef795fb93c373

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2021-04-06 Thread Saiyang Gou
Change by Saiyang Gou : -- nosy: +gousaiyang nosy_count: 11.0 -> 12.0 pull_requests: +23974 pull_request: https://github.com/python/cpython/pull/25236 ___ Python tracker ___

[issue41111] [C API] Convert a few stdlib extensions to the limited C API (PEP 384)

2021-04-06 Thread Skip Montanaro
Skip Montanaro added the comment: > > Skip: By the way, I'm curious, why do you use --with-trace-refs? > I'm still horsing around with register opcodes and got in the habit of building with pydebug and trace refs enabled. -- ___ Python tracker

[issue43105] [Windows] Can't import extension modules resolved via relative paths in sys.path

2021-04-06 Thread Steve Dower
Steve Dower added the comment: New changeset 04732ca993fa077a8b9640cc77fb2f152339585a by Steve Dower in branch 'master': bpo-43105: Importlib now resolves relative paths when creating module spec objects from file locations (GH-25121)

[issue36540] PEP 570: Python Positional-Only Parameters

2021-04-06 Thread Saiyang Gou
Change by Saiyang Gou : -- nosy: +gousaiyang nosy_count: 6.0 -> 7.0 pull_requests: +23973 pull_request: https://github.com/python/cpython/pull/25235 ___ Python tracker ___

[issue43472] [security][subinterpreters] Add auditing hooks to subinterpreter module

2021-04-06 Thread Saiyang Gou
Saiyang Gou added the comment: One problem is the naming of audit events. Actually I didn't even notice that `_xxsubinterpreters` was already there since Python 3.8, because PEP 554 is still in draft status as for now. Looks like `_xxsubinterpreters` is an internal low-level interface to

[issue43756] About updating audit events when function gains new arguments

2021-04-06 Thread Saiyang Gou
New submission from Saiyang Gou : I'm not sure what to do when a function already being audited gains new arguments which are also worth auditing. For example, issue 38144 brings new `root_dir` and `dir_fd` arguments to `glob.glob`. Currently `glob.glob` is already audited, with `(pathname,

[issue39924] pathlib handles missing `os.link`, `os.symlink` and `os.readlink` inconsistently

2021-04-06 Thread Steve Dower
Steve Dower added the comment: New changeset b57e045320d1d2a70eab236b7d31a3ebb75037c3 by Barney Gale in branch 'master': bpo-39924: handle missing os functions more consistently in pathlib (GH-19220) https://github.com/python/cpython/commit/b57e045320d1d2a70eab236b7d31a3ebb75037c3

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-04-06 Thread Steve Dower
Steve Dower added the comment: We're updating all files now, and doing it automatically on build (or manually with --regen). -- assignee: -> steve.dower resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-04-06 Thread Steve Dower
Steve Dower added the comment: New changeset 748283819043c60b1cb272c2cc9ab5b457afb03a by Steve Dower in branch 'master': bpo-43567: Improved generated code refresh on Windows (GH-25120) https://github.com/python/cpython/commit/748283819043c60b1cb272c2cc9ab5b457afb03a --

[issue39702] PEP 614: Relaxing Grammar Restrictions On Decorators

2021-04-06 Thread Saiyang Gou
Change by Saiyang Gou : -- nosy: +gousaiyang nosy_count: 3.0 -> 4.0 pull_requests: +23971 pull_request: https://github.com/python/cpython/pull/25234 ___ Python tracker ___

[issue43725] Create a release branch ABI stability regression test

2021-04-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I started with two PRs against the 64 bits versions for 3.9 and 3.8. This *should* cover 32 bits as well (see previous messages), but if we want specific changes for that we need a 32 bit machine or cross-compilation, but I decided to start with

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the quick fix, Saiyang Gou -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +23970 pull_request: https://github.com/python/cpython/pull/25233 ___ Python tracker

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 0fdf11e8e901a5f47149232557a7f9726b8177c9 by Saiyang Gou in branch 'master': bpo-43755: Update docs to reflect that lambda is not allowed in `comp_if` since 3.9 (GH-25231)

[issue43725] Create a release branch ABI stability regression test

2021-04-06 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +23969 pull_request: https://github.com/python/cpython/pull/25232 ___ Python tracker ___

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread Saiyang Gou
Change by Saiyang Gou : -- keywords: +patch pull_requests: +23968 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25231 ___ Python tracker ___

[issue43725] Create a release branch ABI stability regression test

2021-04-06 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +23967 pull_request: https://github.com/python/cpython/pull/25230 ___ Python tracker ___

[issue43753] [C API] Add Py_Is(x, y) and Py_IsNone(x) functions

2021-04-06 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +pablogsal, tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43753] [C API] Add Py_Is(x, y) and Py_IsNone(x) functions

2021-04-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Right now, there is no benefit for CPython. Please don't this until we have a clear demonstrable benefit. As it stands now, this is all cost and no benefit. Adding unnecessary abstraction layers just makes it more difficult for people to learn to be

[issue43684] Add combined opcodes

2021-04-06 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, I've received many warnings about benchmark hacking already, and we won't fall to that. For static statistics, it's easy enough to either download a thousand of the most popular projects from GitHub or PyPI and just try to compile all the .py files

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread Saiyang Gou
Saiyang Gou added the comment: I'll work on it soon. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread Guido van Rossum
Guido van Rossum added the comment: Oh, nice improvement suggestion for the docs! Do you feel comfortable submitting a small PR for that? -- ___ Python tracker ___

[issue37609] support "UNC" device paths in ntpath.splitdrive

2021-04-06 Thread Steve Dower
Steve Dower added the comment: Once issue43105 is merged, I've got a fairly simple implementation for this using the (new) nt._path_splitroot native method, as well as improved tests that cover both the native and emulated calculations. -- assignee: -> steve.dower versions: +Python

[issue43725] Create a release branch ABI stability regression test

2021-04-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Yeah, I subscribe what Greg said. Let's start with *something* and let's improve upon. -- ___ Python tracker ___

[issue43684] Add combined opcodes

2021-04-06 Thread Brandt Bucher
Brandt Bucher added the comment: > I collected a few different sets of statistics: static stats for the stdlib > and for mypy, dynamic stats for running mypy and a few of the benchmarks in > pyperformance. I'm sure you've considered this, but I'd be *very* careful using opcode stats from

[issue43725] Create a release branch ABI stability regression test

2021-04-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Ideally we'd analyze for a representative set of major platforms we ship binaries on. 32-bit and 64-bit Linux are a start, but we should assume that at least windows and linux toolchains may be different and toss in an additional CPU architecture as

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gvanrossum, lys.nikolaou, pablogsal ___ Python tracker ___ ___ Python-bugs-list

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread Saiyang Gou
Saiyang Gou added the comment: OK I didn't find this duplicate issue. After reading that, I think we should update the documentation (https://docs.python.org/3/reference/expressions.html). `comp_if ::= "if" expression_nocond [comp_iter]` can become `comp_if ::= "if" or_test

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This looks like a duplicate of https://bugs.python.org/issue41848 -- nosy: +xtreak ___ Python tracker ___

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread Saiyang Gou
New submission from Saiyang Gou : According to the documentation, a lambda expression at the `comp_if` position of a comprehension is allowed (can be parsed as `lambda_expr_nocond`). But this seems broken in Python 3.9 PEG parser. Example: user@host:/$ python3.8 Python 3.8.9 (default, Apr 3

[issue43754] Eliminate bindings for partial pattern matches

2021-04-06 Thread Brandt Bucher
New submission from Brandt Bucher : This draft PR contains a couple of pattern matching improvements I'm experimenting with. Most significantly, it implements behavior that several people requested during the PEP 634 feedback process: no more name bindings for partial matches. (One caveat:

[issue43754] Eliminate bindings for partial pattern matches

2021-04-06 Thread Brandt Bucher
Change by Brandt Bucher : -- keywords: +patch pull_requests: +23966 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25229 ___ Python tracker ___

[issue43752] [sqlite3] Fetching an empty value from date column raises ValueError

2021-04-06 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > Zero-sized blobs _with_ converters must return None; zero-sized blobs > _without_ converters must return b"". Maybe the docs should be updated to reflect this inconsistency. -- ___ Python tracker

[issue43752] [sqlite3] Fetching an empty value from date column raises ValueError

2021-04-06 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: BTW, you might be interested in this bpo, Mariusz: bpo-43553 -- ___ Python tracker ___

[issue43752] [sqlite3] Fetching an empty value from date column raises ValueError

2021-04-06 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Thanks for the report and the test case! :) Regression was introduced by e161ec5dd7ba9355eb06757b9304019ac53cdf69, where it was assumed that the handling of zero-sized blobs should be consistent. Unfortunately, the handling of zero-sized blobs is

[issue43752] [sqlite3] Fetching an empty value from date column raises ValueError

2021-04-06 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch pull_requests: +23965 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25228 ___ Python tracker

[issue43753] [C API] Add Py_Is(x, y) and Py_IsNone(x) functions

2021-04-06 Thread STINNER Victor
STINNER Victor added the comment: Py_IS_TYPE(obj, type) was added to Python 3.9 by bpo-39573: https://docs.python.org/dev/c-api/structures.html#c.Py_IS_TYPE commit d905df766c367c350f20c46ccd99d4da19ed57d8 Author: Dong-hee Na Date: Fri Feb 14 02:37:17 2020 +0900 bpo-39573: Add

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Steve Dower
Steve Dower added the comment: > Are you able to also update the embeddable packages please? They've been updated, it's just the CDN hasn't purged those files. I need to add those files to the script. It should show up within 24 hours, if I don't start doing the script tonight. --

[issue36384] ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-04-06 Thread Steve Dower
Steve Dower added the comment: > I don't think that adding a parameter for opt-in for security is a good > approach. I meant to have it set by default on 3.10, when we do not have to worry about breaking users. If it takes years for users to get to 3.10, we should reevaluate our release

[issue43751] await anext() returns None when default is given

2021-04-06 Thread Dennis Sweeney
Dennis Sweeney added the comment: I can open a PR this evening, but I think this is close to the issue: PyIter_Next() already silences StopIteration, so checking for it afterward fails. diff --git a/Objects/iterobject.c b/Objects/iterobject.c index f0c6b79917..95f4659dc9 100644 ---

[issue43753] [C API] Add Py_IS(x, y) and Py_IsNone(x) functions

2021-04-06 Thread STINNER Victor
Change by STINNER Victor : -- title: [C API] Add Py_IS(x, y) macro -> [C API] Add Py_IS(x, y) and Py_IsNone(x) functions ___ Python tracker ___

[issue43753] [C API] Add Py_Is(x, y) and Py_IsNone(x) functions

2021-04-06 Thread STINNER Victor
Change by STINNER Victor : -- title: [C API] Add Py_IS(x, y) and Py_IsNone(x) functions -> [C API] Add Py_Is(x, y) and Py_IsNone(x) functions ___ Python tracker ___

[issue43753] [C API] Add Py_IS(x, y) macro

2021-04-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +23964 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25227 ___ Python tracker ___

[issue43753] [C API] Add Py_IS(x, y) macro

2021-04-06 Thread STINNER Victor
STINNER Victor added the comment: Python has more singletons. In C: * Py_NotImplemented: NotImplemented * Py_Ellipsis: Ellipsis But I don't think that "x == NotImplemented" is common enough to justify a new function. -- ___ Python tracker

[issue43752] Fetching an empty value from date column crashes on SQLite.

2021-04-06 Thread Mariusz Felisiak
Mariusz Felisiak added the comment: A regression test: def test_convert_null_date(self): con = sqlite3.connect(":memory:", detect_types=sqlite3.PARSE_DECLTYPES) cur = con.cursor() cur.execute("CREATE TABLE t (x DATE NULL)") cur.execute("INSERT INTO t (x)

[issue43752] [sqlite3] Fetching an empty value from date column raises ValueError

2021-04-06 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- title: Fetching an empty value from date column crashes on SQLite. -> [sqlite3] Fetching an empty value from date column raises ValueError ___ Python tracker

Re: [ANN] Free Python tutorial with exercises, cscx.org

2021-04-06 Thread Rudy Matela
On Fri, Apr 02, 2021 at 05:00:40AM +1100, Chris Angelico wrote: > On Fri, Apr 2, 2021 at 2:14 AM Rudy Matela wrote: > > Computer Science by Example https://cscx.org/ is a collection of short > > programming exercises. The site can automatically grade students' > > solutions and it accepts

[issue43753] [C API] Add Py_IS(x, y) macro

2021-04-06 Thread STINNER Victor
New submission from STINNER Victor : I propose to add at least Py_Is(x, y) function to the Python C API which would be simply implemented as: static inline int Py_Is(PyObject *x, PyObject *y) { return (x == y); } Right now, there is no benefit for CPython. The idea is to prepare the

[issue43307] Sync site.py and sysconfig.py with PyPy

2021-04-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43307] Sync site.py and sysconfig.py with PyPy

2021-04-06 Thread Stefano Rivera
Change by Stefano Rivera : -- nosy: +stefanor ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43752] Fetching an empty value from date column crashes on SQLite.

2021-04-06 Thread Mariusz Felisiak
New submission from Mariusz Felisiak : We noticed a regression in Python3.10.0a7 (it works properly in Python3.10.0a6) when running Django's test suite. `convert_date()`[1] is called and crashes when fetching an empty value from `date` column on SQLite: File

[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-04-06 Thread Stefano Rivera
Change by Stefano Rivera : -- nosy: +stefanor ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43739] Fixing the example code in Doc/extending/extending.rst to declare and initialize the pmodule variable to be of the right type.

2021-04-06 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Please have a review of my change in the documentation. (Note: I have not signed the Python CLA because I think a simple fix in the documentation doesn't require it.) -- ___ Python tracker

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2021-04-06 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 nosy_count: 12.0 -> 13.0 pull_requests: +23963 pull_request: https://github.com/python/cpython/pull/25226 ___ Python tracker ___

[issue43746] Weird typing annotation closure behavior

2021-04-06 Thread Larry Hastings
Larry Hastings added the comment: Do you have an actual use case for self-referential annotations? -- nosy: +larry ___ Python tracker ___

[issue43683] Handle generator (and coroutine) state in the bytecode.

2021-04-06 Thread Dennis Sweeney
Dennis Sweeney added the comment: Looks like we both opened PRs in the same minute. The MAGIC constant didn't get updated, but perhaps that can just be included in the Minor Corrections PR. I'd bet a CI check could be added to check that if the opcodes change then

[issue43683] Handle generator (and coroutine) state in the bytecode.

2021-04-06 Thread Dennis Sweeney
Change by Dennis Sweeney : -- nosy: +Dennis Sweeney nosy_count: 1.0 -> 2.0 pull_requests: +23962 pull_request: https://github.com/python/cpython/pull/25225 ___ Python tracker

[issue43683] Handle generator (and coroutine) state in the bytecode.

2021-04-06 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +23961 pull_request: https://github.com/python/cpython/pull/25224 ___ Python tracker ___

[issue36384] ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-04-06 Thread STINNER Victor
STINNER Victor added the comment: > In this case, having it off by default goes further to prevent breakage PyYAML was unsafe by default: it allowed to execute arbitary Python code by default. It took years to change the default to "safe". I don't think that adding a parameter for opt-in

[issue43748] Inconsistent grammar in new error message (introduced in 3.10.0a7)

2021-04-06 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, I do not think anyone cares. :-) -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Bill Collins
Bill Collins added the comment: Thanks for the quick action on this! I've downloaded the new 3.8.9/3.9.4 installers, but they are unable to run over my existing 3.8.9/3.9.4 installs; "Unable to install python 3.9.4 (64-bit) due to an existing install." This is probably fine as I can just

[issue43684] Add combined opcodes

2021-04-06 Thread Guido van Rossum
Guido van Rossum added the comment: > Interesting. What code did you use to collect statistics? For static statistics I wrote my own script: https://github.com/python/cpython/pull/25090/files#diff-994d3592c951c78cbe71084d562590d1507ddfed767e2ec040f5e2610845a11c. I can add that to Tools

[issue43751] await anext() returns None when default is given

2021-04-06 Thread PEW's Corner
New submission from PEW's Corner : The new anext() builtin in Python 3.10.0a7 doesn't seem to work properly when a default value is provided as the second argument. Here's an example: import asyncio async def f(): yield 'A' yield 'B' async def main(): g = f() print(await

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

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

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-04-06 Thread Brett Cannon
Brett Cannon added the comment: New changeset 57c6cb5100d19a0e0218c77d887c3c239c9ce435 by Brett Cannon in branch 'master': bpo-42135: Deprecate implementations of find_module() and find_loader() (GH-25169) https://github.com/python/cpython/commit/57c6cb5100d19a0e0218c77d887c3c239c9ce435

[issue41870] Use PEP 590 vectorcall to speed up calls to bool()

2021-04-06 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset efccff9ac84009ef48e8cb22548ce80940f76533 by Dong-hee Na in branch 'master': bpo-41870: Update What's News 3.10 about vectorcall (#25219) https://github.com/python/cpython/commit/efccff9ac84009ef48e8cb22548ce80940f76533 --

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread miss-islington
miss-islington added the comment: New changeset 9a988b8cd8344808a03c9a2ba0c9ba2188240eae by Miss Islington (bot) in branch '3.8': bpo-43745: Actually updates Windows release to OpenSSL 1.1.1k. (GH-25213) https://github.com/python/cpython/commit/9a988b8cd8344808a03c9a2ba0c9ba2188240eae

[issue43750] Undefined constant PACKET_MULTIHOST referred to in package socket

2021-04-06 Thread Tom Cook
New submission from Tom Cook : The documentation for the `AF_PACKET` address family refers to `PACKET_MULTIHOST`. I believe this should read `PACKET_MULTICAST`, which is defined on Linux systems (`PACKET_MULTIHOST` is not). -- assignee: docs@python components: Documentation

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-04-06 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 2df971afd5f29574be3bb44f2d8569cc240b800d by Miss Islington (bot) in branch '3.9': Fix blurb for bpo-43176. (GH-25215) (GH-25217) https://github.com/python/cpython/commit/2df971afd5f29574be3bb44f2d8569cc240b800d --

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Steve Dower
Steve Dower added the comment: A new 3.9.4 and 3.8.9 release is available for download from python.org. The Nuget and Windows Store packages will have to remain as the original versions, since those do not allow us to overwrite with the same version number. -- resolution: -> fixed

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 10.0 -> 11.0 pull_requests: +23960 pull_request: https://github.com/python/cpython/pull/25223 ___ Python tracker

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Steve Dower
Steve Dower added the comment: New changeset 611aa39142f156508945ac312724474c493a6691 by Steve Dower in branch '3.9': bpo-43745: Actually updates Windows release to OpenSSL 1.1.1k. (GH-25213) https://github.com/python/cpython/commit/611aa39142f156508945ac312724474c493a6691 --

[issue41873] Add vectorcall for float()

2021-04-06 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: -23959 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41873] Add vectorcall for float()

2021-04-06 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +23959 pull_request: https://github.com/python/cpython/pull/25219 ___ Python tracker ___

[issue41870] Use PEP 590 vectorcall to speed up calls to bool()

2021-04-06 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +23958 pull_request: https://github.com/python/cpython/pull/25219 ___ Python tracker ___

[issue41870] Use PEP 590 vectorcall to speed up calls to bool()

2021-04-06 Thread Dong-hee Na
Dong-hee Na added the comment: For the record, following built-in functions now support vectorcall calling convention from Python 3.10!! Thank you to everyone who works with this :) - map: bpo-43575 - filter: bpo-43287 - reversed: bpo-41922 - bool: bpo-41870 - float: bpo-41873 --

[issue36384] ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-04-06 Thread Steve Dower
Steve Dower added the comment: The important quote from the linked issue seems to be: > Our new separator= parameter does not allow one to achieve the previous > behavior if mixing and matching & And ; was intended to be allowed, as it is > a single separator rather than a set of

[issue43737] Documentation of modulo operator should document behaviour clearly when second operator is negative

2021-04-06 Thread Anthony Flury
Change by Anthony Flury : -- keywords: +patch pull_requests: +23957 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25220 ___ Python tracker ___

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-04-06 Thread miss-islington
miss-islington added the comment: New changeset 76c4a9fb8ae370901b387a4edb609295bcc159e7 by Miss Islington (bot) in branch '3.8': [3.8] Fix blurb for bpo-43176. (GH-25215) (GH-25218) https://github.com/python/cpython/commit/76c4a9fb8ae370901b387a4edb609295bcc159e7 --

[issue43748] Inconsistent grammar in new error message (introduced in 3.10.0a7)

2021-04-06 Thread Andre Roberge
Andre Roberge added the comment: Since all the messages I track so far (https://github.com/aroberge/friendly/blob/master/friendly/syntax_errors/message_analyzer.py) had been changed when going from 6.7 to 3.8, I had (incorrectly) assumed that all such error messages been changed to use

  1   2   >