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

[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

[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

[issue43746] Weird typing annotation closure behavior

2021-04-09 Thread conchylicultor
conchylicultor added the comment: Sure, here is a minimal reproductible example demonstrating the issue: ``` import pathlib class C: pathlib: pathlib.Path = None ``` Which raises: ``` File "py", line 5, in C pathlib: pathlib.Path = None AttributeError: 'NoneType' object has

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

[issue43773] macOS official installer builds not respecting DYLD_LIBRARY_PATH environment variable.

2021-04-09 Thread Carlton Gibson
Carlton Gibson added the comment: Hi Ned, Thank you for the reply. That explains a lot. I hadn't considered that SQLite would be statically linked. > I believe the original reason was to avoid linking with the Apple-supplied > system copy of the sqlite3 library. I can see that being a

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

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

[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

[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

[issue43785] bz2 performance issue.

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

[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

[issue43785] bz2 performance issue.

2021-04-09 Thread Ma Lin
Change by Ma Lin : -- nosy: +malin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

[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

[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

[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
Change by STINNER Victor : -- pull_requests: +24033 pull_request: https://github.com/python/cpython/pull/25302 ___ Python tracker ___

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

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

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

[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

[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

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

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

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

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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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

[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

[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

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

[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

[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

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

[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

[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

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

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

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

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

[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

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

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

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

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

[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

[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

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

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

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

[issue43761] Documenting dataclass and namedtuple changes for structural pattern matching

2021-04-09 Thread Eric V. Smith
Eric V. Smith added the comment: I do think it's worth mentioning that __match_args__ is automatically generated by @dataclass (if the class doesn't already define __match_args__). That seems like behavior that's very specific to @dataclass. Where else would you find out that defining your

[issue43478] Disallow Mock spec arguments from being Mocks

2021-04-09 Thread Matthew Suozzo
Change by Matthew Suozzo : -- keywords: +patch nosy: +matthew.suozzo nosy_count: 7.0 -> 8.0 pull_requests: +24061 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25326 ___ Python tracker

[issue43714] re.findall: '\Z' must consume end of string if it matched

2021-04-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Python regexes match slices of a Python string s. The latter include the len(s)+1 empty slices of s. An re Match gives both the slice itself as match attribute and its slice coordinates (span) in the searched string.

[issue43761] Documenting dataclass and namedtuple changes for structural pattern matching

2021-04-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: For named tuples, there isn't an include/exclude option, so no extra mention is warranted. -- nosy: +rhettinger ___ Python tracker ___

[issue43725] Create a release branch ABI stability regression test

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

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-09 Thread Eric V. Smith
Eric V. Smith added the comment: Hmm, good point on the inheritance case. I'd forgotten that this is where init=False and others would come in handy. Although I'm having a hard time figuring out why you'd want a derived class that adds fields but wants to use the parent's __match_args__ (or

[issue38263] [Windows] multiprocessing: DupHandle.detach() race condition on DuplicateHandle(DUPLICATE_CLOSE_SOURCE)

2021-04-09 Thread Leonardo Rick
Leonardo Rick added the comment: Traceback (most recent call last): File "", line 1, in File "C:\Program Files\Python39\lib\multiprocessing\spawn.py", line 116, in spawn_main exitcode = _main(fd, parent_sentinel) File "C:\Program Files\Python39\lib\multiprocessing\spawn.py", line

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

2021-04-09 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43790] CLA check fails with a 500 error

2021-04-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Mariatta, do you know who to refer this to? -- nosy: +Mariatta, rhettinger ___ Python tracker ___

[issue43725] Create a release branch ABI stability regression test

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

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2021-04-09 Thread Steve Dower
Change by Steve Dower : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

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

2021-04-09 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.9 ___ Python tracker ___

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-09 Thread Brandt Bucher
Brandt Bucher added the comment: I just realized that in my first two examples, all that's really needed is a "del Child.__match_args__" following each class definition. The main point still stands though: this may be a more common issue than I previously thought. If it is, then a dedicated

[issue43796] "install" package on PyPI

2021-04-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: And maybe discuss with pip people why 'pip install pip install zyx' is not caught as an error. -- nosy: +terry.reedy resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue37251] Mocking a MagicMock with a function spec results in an AsyncMock

2021-04-09 Thread Matthew Suozzo
Matthew Suozzo added the comment: I don't think this was actually fixed for the create_autospec case. create_autospec still uses the only is_async_func check to enable use of AsyncMock and that still does a __code__ check. There was a test submitted to check this case but the test itself

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

2021-04-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Negative modulo divisors is not a "beginner friendly" topic or even remotely relevant to most users. It is also trivially discoverable with a few seconds of experimentation at the interactive prompt. FWIW, I've read dozens of Python tutorials and don't

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2021-04-09 Thread Steve Dower
Steve Dower added the comment: New changeset ba1db571987c65672d9c06789e9852313ed2412a by Barney Gale in branch 'master': bpo-39899: Don't double-check directory name if we're requesting the current user's home directory in ntpath.expanduser() (GH-25277)

[issue43798] Add position metadata to alias AST type

2021-04-09 Thread Matthew Suozzo
Change by Matthew Suozzo : -- keywords: +patch pull_requests: +24059 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25324 ___ Python tracker ___

[issue43761] Documenting dataclass and namedtuple changes for structural pattern matching

2021-04-09 Thread Adrian Freund
Adrian Freund added the comment: I agree that __match_args__ shouldn't have to be added to the documentation of any class that supports it, however dataclass and (maybe to a lesser extend) NamedTuple aren't themselves classes, but aid in creating own classes. Their effects on classes

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

2021-04-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Does this issue propose a patch to python/cpython? If not, it should be closed (and should have been posted to pydev list). -- nosy: +terry.reedy ___ Python tracker

[issue43761] Documenting dataclass and namedtuple changes for structural pattern matching

2021-04-09 Thread Brandt Bucher
Brandt Bucher added the comment: If we end up adding a “match_args=False” option to the dataclass decorator (issue 43764), then the docs for that option would probably be sufficient for this purpose. I’m imagining something like the docs for the “init” option, just substituting

[issue43478] Disallow Mock spec arguments from being Mocks

2021-04-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset dccdc500f9b5dab0a20407ae0178d393796a8828 by Matthew Suozzo in branch 'master': bpo-43478: Restrict use of Mock objects as specs (GH-25326) https://github.com/python/cpython/commit/dccdc500f9b5dab0a20407ae0178d393796a8828 --

[issue43798] Add position metadata to alias AST type

2021-04-09 Thread Matthew Suozzo
Matthew Suozzo added the comment: Ah and one other question: Is this normally the sort of thing that would get backported? It should be very straightforward to do so, at least for 3.9 given the support for the new parser. -- versions: -Python 3.6, Python 3.7, Python 3.8

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-09 Thread Adrian Freund
Adrian Freund added the comment: > I assume the OP wants to have a class that doesn't allow positional patterns. > The right way to spell that is indeed to add > >__match_args__ = () > >to the class, there's no need to add another flag to @dataclass. The same however is also true for all

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-09 Thread Eric V. Smith
Eric V. Smith 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

[issue43798] Add position metadata to alias AST type

2021-04-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Ah and one other question: Is this normally the sort of thing that would get > backported? It should be very straightforward to do so, at least for 3.9 > given the support for the new parser. Unfortunately no, is technically a new feature.

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

2021-04-09 Thread Miki Tebeka
Miki Tebeka added the comment: I agree with Raymond, this is not "beginner friendly". I've been using Python for 25 year and teaching it for about 10 and this topic never came up. -- nosy: +tebeka ___ Python tracker

[issue43708] Tkinter theme settings object schema is missing

2021-04-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: You code as posted is buggy. 'settings' maps styles to dicts with possible keys ‘configure’, ‘map’, ‘layout’ and ‘element create’. See https://docs.python.org/3/library/tkinter.ttk.html#tkinter.ttk.Style.theme_create I presume '.' refers to all styles, but

[issue43725] Create a release branch ABI stability regression test

2021-04-09 Thread Steve Dower
Steve Dower added the comment: Oh wow, that's terrible... yet another good reason not to export data values. But yeah, filtering on the name prefix should be fine. These aren't meant to be publicly accessible anyway. -- ___ Python tracker

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

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

[issue43798] Add position metadata to alias AST type

2021-04-09 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: I'm okay with this, unless someone has any input on why the alias node should not have line/column info (and did not have it in the first place). -- nosy: +BTaskaya, gvanrossum, lys.nikolaou, pablogsal ___

[issue43761] Documenting dataclass and namedtuple changes for structural pattern matching

2021-04-09 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: -rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >