[issue43746] Weird typing annotation closure behavior

2021-04-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I guess this is similar to the explanation at https://bugs.python.org/issue36363#msg338389 > The problem in the original code is that the annotation references a global > name that is shadowed by a local (to the class body) name, and because of the

[issue43785] bz2 performance issue.

2021-04-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue43775] JSON Parsing Alarm: Requests + Json = JSONDecodeError

2021-04-09 Thread Maria Kazakova
Maria Kazakova added the comment: Thank you so much for the answers!! The problem was indeed with the data source, they have fixed it. Sorry for bothering you! Wish you all the best!!! -- nosy: -paul.moore, steve.dower, tim.golden, zach.ware resolution: -> fixed stage: -> resolved

[issue41486] Add _BlocksOutputBuffer for bz2/lzma/zlib module

2021-04-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +methane ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

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

2021-04-09 Thread Eryk Sun
Eryk Sun added the comment: It's not a subprocess bug, per se. It's due to creating the stdout/stderr worker threads from the __del__ finalizer while the interpreter is shutting down. Minimal reproducer, confirmed in both Linux and Windows: import threading class C: def __de

[issue43785] bz2 performance issue.

2021-04-09 Thread Ma Lin
Change by Ma Lin : -- nosy: +malin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

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

2021-04-09 Thread Eryk Sun
Change by Eryk Sun : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue43682] Make static methods created by @staticmethod callable

2021-04-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Currently pydoc on X.sm gives: --- sm(x, y) A static method --- I concur with Mark Shannon. The root problem is that Python functions and built-in functions have different behavior when assigned as class attribute. The former became an instance method

[issue43746] Weird typing annotation closure behavior

2021-04-09 Thread Joël Larose
Joël Larose added the comment: An easy workaround would be to alias your import or to import your class directly. ``` from ... import losses as l class A: losses: l.Losses = l.Losses() ``` or ``` from ...losses import Losses class A: losses: Losses = Losses() ``` -- nosy: +jo

[issue43785] Remove RLock from BZ2File

2021-04-09 Thread Inada Naoki
Inada Naoki added the comment: I will create a separated issue for __iter__, because it is same to gzip and lzma. -- title: bz2 performance issue. -> Remove RLock from BZ2File ___ Python tracker ___

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

2021-04-09 Thread Bill Collins
Bill Collins added the comment: Confirmed, thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue43786] slice(None) is slice(None) is False

2021-04-09 Thread Nico Schlömer
New submission from Nico Schlömer : I stumbled upon this when dealing with NumPy arrays: ``` slice(None) is slice(None) ``` ``` False ``` This came up when trying to check if a variable `a` equals `slice(None)`. The comparison ``` a = slice(None) a == slice(None) ``` ``` True ``` works, but does

[issue43787] Optimize BZ2File, GzipFile, and LZMAFile __iter__ method.

2021-04-09 Thread Inada Naoki
New submission from Inada Naoki : __iter__ method of BZ2File, GzipFile, and LZMAFile is IOBase.__iter__. It calls `readline()` for each line. Since `readline()` is defined as Python function, it is slower than C iterator. Adding custom __iter__ method that delegates to underlying buffer __ite

[issue43787] Optimize BZ2File, GzipFile, and LZMAFile __iter__ method.

2021-04-09 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue38963] multiprocessing processes seem to "bleed" user information (GID/UID/groups)

2021-04-09 Thread Bartosz Kwitniewski
Bartosz Kwitniewski added the comment: It works as intended - pool of 5 processes is being reused with new data: - First, 5 processes are created as root, - in first run of check_permission they drop their privileges to user, - when they finish processing check_permission function, they are not

[issue43786] slice(None) is slice(None) is False

2021-04-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: The behaviour of `is` is correct. The `is` operator tests for object identity, not equality. The reason that `slice(None) is slice(None)` returns False is that the two calls to the slice function return two different objects. You say that using the equals

[issue43786] slice(None) is slice(None) is False

2021-04-09 Thread Nico Schlömer
Nico Schlömer added the comment: Thanks very much, Steven, for the feedback and the suggestion. -- ___ Python tracker ___ ___ Python

[issue43788] Make ssl_data.h version specific

2021-04-09 Thread Christian Heimes
New submission from Christian Heimes : _ssl_data.h contains static tables with OpenSSL error names and reasons. The stables are created by scrapping header files. The current approach has two issues: - error codes are version dependent. OpenSSL 1.1.1 uses different codes and has a different

[issue43788] Make ssl_data.h version specific

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

[issue43785] Remove RLock from BZ2File

2021-04-09 Thread Ma Lin
Ma Lin added the comment: This change is backwards incompatible, it may break some code silently. If someone really needs better performance, they can write a BZ2File class without RLock by themselves, it should be easy. FYI, zlib module was added in 1997, bz2 module was added in 2002, lzma

[issue43774] [Doc] Document configure options in the Python documentation

2021-04-09 Thread miss-islington
miss-islington added the comment: New changeset f7be26a8f2ed588df90959ae7c0fdcafe2091f76 by Victor Stinner in branch 'master': bpo-43774: Doc job of Azure Pipelines uses Doc/requirements.txt (GH-25296) https://github.com/python/cpython/commit/f7be26a8f2ed588df90959ae7c0fdcafe2091f76 ---

[issue43774] [Doc] Document configure options in the Python documentation

2021-04-09 Thread STINNER Victor
STINNER Victor added the comment: Raymond: > Thanks for adding this. You're welcome :-) I plan to send an email to python-dev to ask for reviews. I hesitated to ask for a review on the PR, but honestly, it's painful to read plain text Sphinx. I prefer to read HTML ;-) -- __

[issue43774] [Doc] Document configure options in the Python documentation

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

[issue41486] Add _BlocksOutputBuffer for bz2/lzma/zlib module

2021-04-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue43682] Make static methods created by @staticmethod callable

2021-04-09 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: > I concur with Mark Shannon. The root problem is that Python functions and > built-in functions have different behavior when assigned as class attribute. > The former became an instance method, but the latter is not. Do you see a way to make C funct

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

2021-04-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue43789] OpenSSL 3.0.0: password callback called multiple times

2021-04-09 Thread Christian Heimes
New submission from Christian Heimes : OpenSSL 3.0.0 seems to invoke the password callback multiple times under some circumstances. This triggers a fatal error in Python when the first invocation sets an exception. test_load_cert_chain (test.test_ssl.ContextTests) ... Fatal Python error: _Py

[issue43777] Remove description of "pip search" command from tutorial

2021-04-09 Thread Bob Kline
Bob Kline added the comment: Thanks for the clarification. I submitted a PR, but I'm unable to remove the "CLA not signed" tag from it (even though I have signed the CLA) and form at https://check-python-cla.herokuapp.com/ ("You can check yourself to see if the CLA has been received.") blows

[issue43789] OpenSSL 3.0.0: password callback called multiple times

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

[issue43774] [Doc] Document configure options in the Python documentation

2021-04-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset bd88ccb943c0ea672c14a87e76157fade4feae11 by Victor Stinner in branch 'master': bpo-43774: Document the Python Build System (GH-25302) https://github.com/python/cpython/commit/bd88ccb943c0ea672c14a87e76157fade4feae11 -- ___

[issue43790] CLA check fails with a 500 error

2021-04-09 Thread Bob Kline
New submission from Bob Kline : The tool to check whether the CLA has been received fails with a 500 error. Steps to reproduce: 1. Add your GitHub name to your b.p.o. record. 2. Navigate to https://check-python-cla.herokuapp.com/ 3. Enter your GitHub name and press the "Check" button 4. "500 In

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

2021-04-09 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: I'd also prefer a Py_IsNotNone() because it's more explicit than !Py_IsNone(); the exclamation mark can be easily missed when reading/writing code, IMO. Just my 2 cents. -- nosy: +erlendaasland ___ Python

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

2021-04-09 Thread STINNER Victor
STINNER Victor added the comment: > I'd also prefer a Py_IsNotNone() because it's more explicit than !Py_IsNone() I would prefer keep the C API small. I don't think that we need to duplicate all functions testing for something. We provide PyTuple_Check(obj) but we don't provide PyTuple_NotCh

[issue43777] Remove description of "pip search" command from tutorial

2021-04-09 Thread Bob Kline
Bob Kline added the comment: I have reported the failure of the CLA check tool. https://bugs.python.org/issue43790 -- ___ Python tracker ___ _

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

2021-04-09 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: > I would prefer keep the C API small. Yes, I see the value of that as well. I tried applying this API on an extension, and I found the code to be slightly less readable for the "is not" cases. -- ___ Pyt

[issue37712] Exception frames from unittest.TestCase.fail dependent on nesting

2021-04-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: > I think this is the same as issue37712. This issue was first reported as issue24959. It would be better to close the newer issues as duplicates of the first one, instead of keeping all the duplicates open. Otherwise, the history and discussion gets fragmen

[issue43791] OpenSSL 3.0.0: TLS 1.0 / 1.1 connections fail with TLSV1_ALERT_INTERNAL_ERROR

2021-04-09 Thread Christian Heimes
New submission from Christian Heimes : With OpenSSL 3.0.0-alpha14 several tests for TLS 1.0 and 1.1 connections are failing handshake with "[SSL: TLSV1_ALERT_INTERNAL_ERROR] tlsv1 alert internal error". OpenSSL is configured with default security level "1". Tests are only passing with @SECLEV

[issue4379] Py_SAFE_DOWNCAST in FILE_TIME_to_time_t_nsec failing

2021-04-09 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +christian.heimes nosy_count: 5.0 -> 6.0 pull_requests: +24036 pull_request: https://github.com/python/cpython/pull/25304 ___ Python tracker __

[issue43789] OpenSSL 3.0.0: password callback called multiple times

2021-04-09 Thread Christian Heimes
Christian Heimes added the comment: New changeset d3b73f32ef7c693a6ae8c54eb0e62df3b5315caf by Christian Heimes in branch 'master': bpo-43789: OpenSSL 3.0.0 Don't call passwd callback again in error case (GH-25303) https://github.com/python/cpython/commit/d3b73f32ef7c693a6ae8c54eb0e62df3b5315

[issue43789] OpenSSL 3.0.0: password callback called multiple times

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

[issue43789] OpenSSL 3.0.0: password callback called multiple times

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

[issue37712] Exception frames from unittest.TestCase.fail dependent on nesting

2021-04-09 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> unittest swallows part of stack trace when raising AssertionError in a TestCase ___ 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: TLS 1.0 / 1.1 connections fail with TLSV1_ALERT_INTERNAL_ERROR, OpenSSL 3.0.0: password callback called multiple times versions: -Python 3.7 ___ Python tracker

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

2021-04-09 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +24039 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/23688 ___ Python tracker

[issue42247] unittest hides traceback frames in chained exceptions

2021-04-09 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> unittest swallows part of stack trace when raising AssertionError in a TestCase ___ Python tracker

[issue4379] Py_SAFE_DOWNCAST in FILE_TIME_to_time_t_nsec failing

2021-04-09 Thread Christian Heimes
Christian Heimes added the comment: New changeset 5151d642004c59cce58d669be85d9a5e987f51d3 by Christian Heimes in branch 'master': bpo-4379: Skip TLS 1.0/1.1 tests under OpenSSL 3.0.0 (GH-25304) https://github.com/python/cpython/commit/5151d642004c59cce58d669be85d9a5e987f51d3 -- __

[issue4379] Py_SAFE_DOWNCAST in FILE_TIME_to_time_t_nsec failing

2021-04-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +24040 pull_request: https://github.com/python/cpython/pull/25307 ___ Python tracker __

[issue4379] Py_SAFE_DOWNCAST in FILE_TIME_to_time_t_nsec failing

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

[issue43791] OpenSSL 3.0.0: TLS 1.0 / 1.1 connections fail with TLSV1_ALERT_INTERNAL_ERROR

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

[issue43791] OpenSSL 3.0.0: TLS 1.0 / 1.1 connections fail with TLSV1_ALERT_INTERNAL_ERROR

2021-04-09 Thread miss-islington
Change by miss-islington : -- keywords: +patch nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +24042 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25307 ___ Python tracker

[issue43792] "bad argument to internal function" in cython

2021-04-09 Thread Dmitry Marakasov
New submission from Dmitry Marakasov : I'm playing with adding python3.10a7 port to FreeBSD ports collection, and have run into similar problem with building multiple third party modules (for instance, yaml, yarl and pystemmer). Here's log from yaml: running build_ext cythoning yaml/_yaml.pyx

[issue43789] OpenSSL 3.0.0: password callback called multiple times

2021-04-09 Thread miss-islington
miss-islington added the comment: New changeset a188bd44ac3c54dc3bf927f1b10464ab80f37549 by Miss Islington (bot) in branch '3.9': bpo-43789: OpenSSL 3.0.0 Don't call passwd callback again in error case (GH-25303) https://github.com/python/cpython/commit/a188bd44ac3c54dc3bf927f1b10464ab80f375

[issue43791] OpenSSL 3.0.0: TLS 1.0 / 1.1 connections fail with TLSV1_ALERT_INTERNAL_ERROR

2021-04-09 Thread Christian Heimes
Christian Heimes added the comment: https://github.com/python/cpython/pull/25304 is merged PR to master. -- ___ Python tracker ___

[issue43792] "bad argument to internal function" in cython

2021-04-09 Thread STINNER Victor
STINNER Victor added the comment: Sadly, there is Cython release supporting Python 3.10 yet: https://github.com/cython/cython/issues/4046 By the way, I propose two PRs to fix Cython tests on Python 3.10: https://github.com/cython/cython/issues/4100 I suggest you waiting until there a new Cyth

[issue43792] Cython is not compatible with Python 3.10 yet: "SystemError: bad argument to internal function"

2021-04-09 Thread STINNER Victor
Change by STINNER Victor : -- title: "bad argument to internal function" in cython -> Cython is not compatible with Python 3.10 yet: "SystemError: bad argument to internal function" ___ Python tracker _

[issue39125] Type signature of @property not shown in help()

2021-04-09 Thread brenthuisman
brenthuisman added the comment: Is there any activity on this issue? The way Pybind11 generates accessors for attributes makes (as properties with getter and setter) makes it currently impossible to view the type info, which Pybind does provide. Thanks for any update. -- nosy: +bren

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

2021-04-09 Thread STINNER Victor
New submission from STINNER Victor : Build attached newinter.c C extension. Example: $ gcc -shared newinter.c $(pkg-config python-3.10 --cflags --libs) -o newinter.so -fPIC Trying to load the C extension crashs in various ways. Crashes on a Python debug build: (1) $ PYTHONPATH=$PWD ./pyth

[issue43746] Weird typing annotation closure behavior

2021-04-09 Thread conchylicultor
conchylicultor added the comment: Yes, I know I can rename the closure, or wrap the annotation in 'quote'. I just wanted to point this out as it felt confusing to me. For instance, it feels inconsistent with: ``` def fn(datetime: datetime.Time): # Works as expected ``` Or: ``` @dataclass c

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

2021-04-09 Thread STINNER Victor
STINNER Victor added the comment: > I tried applying this API on an extension, and I found the code to be > slightly less readable for the "is not" cases. FYI you can try upgrade_pythoncapi.py on your project using the following PR to update code to use Py_IsNone/Py_IsTrue/Py_IsFalse: https:

[issue43791] OpenSSL 3.0.0: TLS 1.0 / 1.1 connections fail with TLSV1_ALERT_INTERNAL_ERROR

2021-04-09 Thread miss-islington
miss-islington added the comment: New changeset 4e710d1c88cbebdb17578de00997457b3b26874d by Miss Islington (bot) in branch '3.8': [3.8] bpo-43791: Skip TLS 1.0/1.1 tests under OpenSSL 3.0.0 (GH-25304) (GH-25308) https://github.com/python/cpython/commit/4e710d1c88cbebdb17578de00997457b3b26874

[issue43783] Make ParamSpec.args/kwargs more useful objects

2021-04-09 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue4379] Py_SAFE_DOWNCAST in FILE_TIME_to_time_t_nsec failing

2021-04-09 Thread miss-islington
miss-islington added the comment: New changeset 4a5c101936900d11d723b59508464f73e4ab3a36 by Miss Islington (bot) in branch '3.9': bpo-4379: Skip TLS 1.0/1.1 tests under OpenSSL 3.0.0 (GH-25304) https://github.com/python/cpython/commit/4a5c101936900d11d723b59508464f73e4ab3a36 -- ___

[issue43746] Weird typing annotation closure behavior

2021-04-09 Thread Guido van Rossum
Guido van Rossum added the comment: Just Don't Do This. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue43794] OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap SSL_OP_IGNORE_UNEXPECTED_EOF

2021-04-09 Thread Christian Heimes
New submission from Christian Heimes : OpenSSL 3.0.0 state machine handles unexpected EOFs more strict and requires peers to properly shut down connections. The old OpenSSL 1.1.1 behavior can be get back with SSL_OP_IGNORE_UNEXPECTED_EOF. I propose to add the option by default until Python's

[issue43772] Minor repr error in typing.TypeVar.__ror__()

2021-04-09 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue43794] OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap SSL_OP_IGNORE_UNEXPECTED_EOF

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

[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) https://github.com/python/cpython/commit/a28398e9c60848fc291

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

[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, byteorder=sys.byteor

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

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

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

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

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

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

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

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

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

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

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

[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

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

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

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

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

[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

[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
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) https://github.com/python/cpython/commit/76d270ec2b776cc53319

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

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

[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: https://mail.py

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

  1   2   >