[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-09 Thread Brandt Bucher
Brandt Bucher added the comment: > init=False is used to make sure there's no __init__ defined, because there's > a difference between a class with an __init__ and one without. If there was a > difference between __match_args__ being not present and __match_args__=(), > then I'd support a

[issue43770] Rework C types initialization

2021-04-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24060 pull_request: https://github.com/python/cpython/pull/25325 ___ Python tracker ___

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2021-04-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: Fixed for 3.10. Marking as a release blocker for 3.9 and assigning for a release manager decision on if they accept this change (the PR) as a bugfix in 3.9 or not. (see the PR) It is late enough in 3.8's lifetime I wouldn't touch that one. --

[issue43788] Make ssl_data.h version specific

2021-04-09 Thread miss-islington
miss-islington added the comment: New changeset 150af7543214e1541fa582374502ac1cd70e8eb4 by Christian Heimes in branch 'master': bpo-43788: Generate version specific _ssl_data.h (GH-25300) https://github.com/python/cpython/commit/150af7543214e1541fa582374502ac1cd70e8eb4 -- nosy:

[issue43788] Make ssl_data.h version specific

2021-04-09 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +24046 pull_request: https://github.com/python/cpython/pull/25311 ___ Python tracker ___

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-04-09 Thread Petr Viktorin
Change by Petr Viktorin : -- keywords: +patch pull_requests: +24047 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25312 ___ Python tracker ___

[issue43682] Make static methods created by @staticmethod callable

2021-04-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset 507a574de31a1bd7fed8ba4f04afa285d985109b by Victor Stinner in branch 'master': bpo-43682: @staticmethod inherits attributes (GH-25268) https://github.com/python/cpython/commit/507a574de31a1bd7fed8ba4f04afa285d985109b --

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-04-09 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +24050 pull_request: https://github.com/python/cpython/pull/25315 ___ Python tracker ___

[issue43794] OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap SSL_OP_IGNORE_UNEXPECTED_EOF

2021-04-09 Thread miss-islington
miss-islington added the comment: New changeset e18ebd9ec546a3647a57c282735350f60a26d66d by Miss Islington (bot) in branch '3.8': bpo-43794: OpenSSL 3.0.0: set OP_IGNORE_UNEXPECTED_EOF by default (GH-25309) https://github.com/python/cpython/commit/e18ebd9ec546a3647a57c282735350f60a26d66d

[issue43794] OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap SSL_OP_IGNORE_UNEXPECTED_EOF

2021-04-09 Thread miss-islington
miss-islington added the comment: New changeset 54d89a33e0d1b854fd5a72889d6554aeeb4170f0 by Miss Islington (bot) in branch '3.9': bpo-43794: OpenSSL 3.0.0: set OP_IGNORE_UNEXPECTED_EOF by default (GH-25309) https://github.com/python/cpython/commit/54d89a33e0d1b854fd5a72889d6554aeeb4170f0

[issue40485] Provide an abstraction for a select-able Event

2021-04-09 Thread Faidon Liambotis
Faidon Liambotis added the comment: I missed that there is now also an os.eventfd_{write,read}(), so in the above os.write(self._event_fd, self._ONE) can become os.eventfd_write(self._event_fd, 1) and: os.read(self._event_fd, 8) can become: os.eventfd_read(self._event_fd)

[issue43789] OpenSSL 3.0.0: password callback called multiple times

2021-04-09 Thread Christian Heimes
Christian Heimes added the comment: New changeset a28398e9c60848fc291c83dac44e5212694fb0b2 by Miss Islington (bot) in branch '3.8': [3.8] bpo-43789: OpenSSL 3.0.0 Don't call passwd callback again in error case (GH-25303) (GH-25306)

[issue43788] Make ssl_data.h version specific

2021-04-09 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +24045 pull_request: https://github.com/python/cpython/pull/25310 ___ Python tracker ___

[issue43626] SIGSEV in PyErr_SetObject

2021-04-09 Thread Shane Harvey
Shane Harvey added the comment: This issue was resolved in https://jira.mongodb.org/browse/PYTHON-2621 The cause of the segfault was determined to be gevent 1.3.4 (2018) and/or greenlet 0.4.13 (2018). When the reporter upgraded to gevent==21.1.2 and greenlet==1.0 the segfault went away.

[issue43794] OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap SSL_OP_IGNORE_UNEXPECTED_EOF

2021-04-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +24049 pull_request: https://github.com/python/cpython/pull/25314 ___ Python tracker ___

[issue43794] OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap SSL_OP_IGNORE_UNEXPECTED_EOF

2021-04-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +24048 pull_request: https://github.com/python/cpython/pull/25313 ___ Python tracker

[issue43794] OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap SSL_OP_IGNORE_UNEXPECTED_EOF

2021-04-09 Thread Christian Heimes
Christian Heimes added the comment: New changeset 6f37ebc61e9e0d13bcb1a2ddb7fc9723c04b6372 by Christian Heimes in branch 'master': bpo-43794: OpenSSL 3.0.0: set OP_IGNORE_UNEXPECTED_EOF by default (GH-25309) https://github.com/python/cpython/commit/6f37ebc61e9e0d13bcb1a2ddb7fc9723c04b6372

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

2021-04-09 Thread Anthony Flury
Anthony Flury added the comment: I fundamentally disagree with closing this - I know that this and many other 'quirks' catch beginners out, and the tutorial is what they use to learn.They don't look in the reference document - it is too dense in BNF definitions which turns a lot of people

[issue43790] CLA check fails with a 500 error

2021-04-09 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I agree with you. I've faced the same problem. The server sometimes fails with a 500 error and sometimes it works fine. I'm attaching a screenshot of the problem. -- nosy: +shreyanavigyan Added file: https://bugs.python.org/file49951/Server Error

[issue43789] OpenSSL 3.0.0: password callback called multiple times

2021-04-09 Thread Christian Heimes
Christian Heimes added the comment: I'm keeping the bug open as a reminder to investigate the change of behavior more carefully. -- ___ Python tracker ___

[issue43747] Can't create new interpreter in multi thread

2021-04-09 Thread Samuel Thibault
Samuel Thibault added the comment: I don't see how to reopen this, we'd probably want to mark it as a duplicate of the newly-opened https://bugs.python.org/issue43793 , see https://mail.python.org/archives/list/capi-...@python.org/thread/7FI6V2KFBFZIXC6LZLKHY4Z7TUJ6YWTX/ --

[issue43788] OpenSSL 3.0.0: Make ssl_data.h version specific

2021-04-09 Thread Christian Heimes
Christian Heimes added the comment: New changeset 299ae9c7a2a169d54921815b9bb41a8f9277a3aa by Christian Heimes in branch '3.9': [3.9] bpo-43788: Generate version specific _ssl_data.h (GH-25300) (GH-25310) https://github.com/python/cpython/commit/299ae9c7a2a169d54921815b9bb41a8f9277a3aa

[issue43788] OpenSSL 3.0.0: Make ssl_data.h version specific

2021-04-09 Thread Christian Heimes
Christian Heimes added the comment: New changeset 70f2ca7ea46ac15d05c7b422a10b18aa3fe4a140 by Christian Heimes in branch '3.8': [3.8] bpo-43788: Generate version specific _ssl_data.h (GH-25300) (GH-25311) https://github.com/python/cpython/commit/70f2ca7ea46ac15d05c7b422a10b18aa3fe4a140

[issue40485] Provide an abstraction for a select-able Event

2021-04-09 Thread Faidon Liambotis
Faidon Liambotis added the comment: Thanks so much for all the work on os.eventfd(), it's exciting to see it come to fruition. An eventfd variant of Event (compatible with the threading & multiprocessing APIs) is now as simple as: class Event: _ONE = (1).to_bytes(8,

[issue43788] OpenSSL 3.0.0: Make ssl_data.h version specific

2021-04-09 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: Make ssl_data.h version specific -> OpenSSL 3.0.0: Make ssl_data.h version specific ___ Python tracker

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-04-09 Thread Christian Heimes
Change by Christian Heimes : -- dependencies: +OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap SSL_OP_IGNORE_UNEXPECTED_EOF, OpenSSL 3.0.0: Make ssl_data.h version specific ___ Python tracker

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-04-09 Thread Petr Viktorin
New submission from Petr Viktorin : This issue tracks implementation of PEP 652. CPython's Limited C-API and Stable ABI, introduced in PEP 384, will be formalized in a single definitive file, tested, and documented. -- messages: 390638 nosy: petr.viktorin priority: normal severity:

[issue43793] [C API] Py_NewInterpreter() cannot be called from a thread which has no Python thread state

2021-04-09 Thread Samuel Thibault
Change by Samuel Thibault : -- nosy: +samuel-thibault ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43796] "install" package on PyPI

2021-04-09 Thread Jared Ondricek
New submission from Jared Ondricek : I recently accidentally typed "pip install pip install " and it installed a package called "install" that has 1 star on GitHub. It is also in use by 2.3k repositories according to the GitHub dependency graph view. I don't think it's malicious, but it does

[issue43796] "install" package on PyPI

2021-04-09 Thread Christian Heimes
Christian Heimes added the comment: BPO is just for CPython bugs. Packaging and PyPI are handled by different teams and trackers. Please use https://github.com/pypa/pypi-support -- nosy: +christian.heimes ___ Python tracker

[issue43779] Fix possible parser/AST ref leaks

2021-04-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

2021-04-09 Thread Steve Dower
Change by Steve Dower : -- assignee: steve.dower -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43790] CLA check fails with a 500 error

2021-04-09 Thread Bob Kline
Bob Kline added the comment: Apparently, it doesn't fail when you enter a name for which it can't find a b.p.o. account. So it knows how to say "beelzebub does not have bpo account" but fails when I put in "bkline" in the GitHub username field. It's tempting to suspect that the 500 error

[issue40485] Provide an abstraction for a select-able Event

2021-04-09 Thread Faidon Liambotis
Faidon Liambotis added the comment: Not sure if I understand the question! I'd like to see that happen, I don't particularly care if it makes to 3.10 or a later version, although of course the earlier the better :) As an idea of a path forward, would it make sense to take the code above and

[issue43784] starting a thread in __del__ hangs at interpreter shutdown

2021-04-09 Thread Kevin M
Kevin M added the comment: eryksun, wow, that's speedy analysis, but there might be more to it. I went and tested a bunch of test cases. my subrocess code doesn't seem to hang on Linux where the thread example code does? Linux - Python 3.6.8 - your threading example DOESN'T hang Linux -

[issue40485] Provide an abstraction for a select-able Event

2021-04-09 Thread Christian Heimes
Christian Heimes added the comment: Do you want to work on a feature for 3.10? Feature freeze is in less than 4 weeks. -- components: +Library (Lib) -Extension Modules stage: -> needs patch ___ Python tracker

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-04-09 Thread Christian Heimes
Christian Heimes added the comment: Miro, I have pushed several fixes for OpenSSL 3.0.0 * bpo-43788 addresses wrong library and error reason codes (e.g. KRB5_S_TKT_NYV) * bpo-43789 fixes an issue with exception state in password callbacks (_PyEval_EvalFrameDefault returned a result with an

[issue24959] unittest swallows part of stack trace when raising AssertionError in a TestCase

2021-04-09 Thread David Mandelberg
Change by David Mandelberg : -- nosy: +dseomn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43790] CLA check fails with a 500 error

2021-04-09 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I believe that maybe the Heroku server, the CLA Checking tool is deployed to, is facing an internal server problem or the server is down. -- ___ Python tracker

[issue43749] venv module does not copy the correct python exe

2021-04-09 Thread Ned Deily
Change by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43779] Fix possible parser/AST ref leaks

2021-04-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 76d270ec2b776cc5331935cc58c2d63622f1c0e9 by Erlend Egeberg Aasland in branch '3.9': [3.9] bpo-43779: Fix possible refleak involving _PyArena_AddPyObject (GH-25289). (GH-25294)

[issue43796] "install" package on PyPI

2021-04-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems to have been discussed : https://github.com/pypa/pypi-support/issues/451 -- nosy: +xtreak ___ Python tracker ___

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-04-09 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +24051 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25316 ___ Python tracker ___

[issue43797] Improve syntax error for invalid comparisons

2021-04-09 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Improve syntax error for invalid comparisons such as: >>> if x = 3: File "", line 1 if x = 3: ^ SyntaxError: invalid syntax to print: >>> if x = 3: File "", line 1 if x = 3: ^ SyntaxError: cannot assign to name. Maybe

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

2021-04-09 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +24053 stage: backport needed -> patch review pull_request: https://github.com/python/cpython/pull/25318 ___ Python tracker ___

[issue43797] Improve syntax error for invalid comparisons

2021-04-09 Thread Andre Roberge
Change by Andre Roberge : -- nosy: +aroberge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43725] Create a release branch ABI stability regression test

2021-04-09 Thread Steve Dower
Steve Dower added the comment: I got a false positive on my PR at https://github.com/python/cpython/pull/25318/checks?check_run_id=2308871807 1 Changed variable: [C]'const unsigned char[45154] const _Py_M__importlib_bootstrap_external' was changed to 'const unsigned char[43681] const

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-04-09 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +24054 pull_request: https://github.com/python/cpython/pull/25319 ___ Python tracker ___

[issue43797] Improve syntax error for invalid comparisons

2021-04-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +24052 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25317 ___ Python tracker

[issue42737] PEP 563: drop annotations for complex assign targets

2021-04-09 Thread Saiyang Gou
Saiyang Gou added the comment: I think we can just skip evaluating annotations for complex targets when in module or class scope (they are not stored anyway). The point of PEP 563 is to suppress any evaluation of annotations (regardless of position) at definition time, while type checkers

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-04-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +24055 pull_request: https://github.com/python/cpython/pull/25320 ___ Python tracker ___

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-04-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +24056 pull_request: https://github.com/python/cpython/pull/25321 ___ Python tracker ___

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-04-09 Thread Christian Heimes
Christian Heimes added the comment: New changeset 2d7fdc90731e132f9d6b43852ee112f25831394b by Christian Heimes in branch 'master': bpo-38820: OpenSSL 3.0.0: Use supported hashing algos in doc test (GH-25319) https://github.com/python/cpython/commit/2d7fdc90731e132f9d6b43852ee112f25831394b

[issue43798] Add position metadata to alias AST type

2021-04-09 Thread Matthew Suozzo
New submission from Matthew Suozzo : Given the increasing use of long `from typing import foo, bar, ...` import sequences, it's becoming more desirable to address individual components of the import node. Unfortunately, the ast.alias node doesn't contain source location metadata (e.g.

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-04-09 Thread miss-islington
miss-islington added the comment: New changeset ffb05bbb30fa82dbe887981bdabd65af7daffcd1 by Miss Islington (bot) in branch '3.8': bpo-38820: OpenSSL 3.0.0: Use supported hashing algos in doc test (GH-25319) https://github.com/python/cpython/commit/ffb05bbb30fa82dbe887981bdabd65af7daffcd1

[issue42737] PEP 563: drop annotations for complex assign targets

2021-04-09 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: If there is enough interest, I'd like to propose to this before the beta cut -- ___ Python tracker ___

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-04-09 Thread miss-islington
miss-islington added the comment: New changeset 7c8796a750fb108be99e0bc50ca3dba000d77e54 by Miss Islington (bot) in branch '3.9': bpo-38820: OpenSSL 3.0.0: Use supported hashing algos in doc test (GH-25319) https://github.com/python/cpython/commit/7c8796a750fb108be99e0bc50ca3dba000d77e54

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

2021-04-09 Thread Steve Dower
Steve Dower added the comment: New changeset 11c3bd3f6d06649484b81a659c7bf02d6632e607 by Barney Gale in branch 'master': bpo-40107: Switch to using io.open() for pathlib.Path.open() (GH-25240) https://github.com/python/cpython/commit/11c3bd3f6d06649484b81a659c7bf02d6632e607 --

[issue43725] Create a release branch ABI stability regression test

2021-04-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Is there an option to exclude array lengths? Or to treat the API as just a > pointer rather than an array? Technically is not a false positive:

<    1   2