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

2021-04-12 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43826] Resource warnings in test_subprocess

2021-04-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +24113 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25381 ___ Python tracker

[issue43826] Resource warnings in test_subprocess

2021-04-12 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : It seems that some of the pipe objects were not closed properly causing resource warnings. Regarding "subprocess still running warning" I guess we need to call kill() on the subprocess before exiting test_send_signal_race2. I will raise a PR for

[issue43825] Deprecation warnings in test cases

2021-04-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +24112 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25380 ___ Python tracker

[issue43825] Deprecation warnings in test cases

2021-04-12 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Following deprecation warnings are raised when tests are ran with -Wall in CPython test suite. I will raise a PR for this. 0:03:48 load avg: 0.79 [ 59/427] test_cmd_line

[issue37179] asyncio loop.start_tls() provide support for TLS in TLS

2021-04-12 Thread Jordan Borean
Jordan Borean added the comment: I'm looking through the PR https://github.com/python/cpython/pull/17975 and it doesn't look like it addresses this particular problem. The code for start_tls

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

2021-04-12 Thread Inada Naoki
Inada Naoki added the comment: New changeset d2a8e69c2c605fbaa3656a5f99aa8d295f74c80e by Inada Naoki in branch 'master': bpo-43787: Add __iter__ to GzipFile, BZ2File, and LZMAFile (GH-25353) https://github.com/python/cpython/commit/d2a8e69c2c605fbaa3656a5f99aa8d295f74c80e --

[issue42059] TypedDict(...) as function does not respect "total" when setting __required_keys__ and __optional_keys__

2021-04-12 Thread Dominic Davis-Foster
Dominic Davis-Foster added the comment: I have backported this to typing_extensions in https://github.com/python/typing/pull/778 On Python 3.9.2 and above typing.TypedDict is used, otherwise it's typing_extensions.TypedDict. -- nosy: +domdfcoding

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

2021-04-12 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +24088 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25353 ___ Python tracker

[issue43682] Make static methods created by @staticmethod callable

2021-04-12 Thread STINNER Victor
STINNER Victor added the comment: Ok, static methods are now callable in Python 3.10. Moreover, @staticmethod and @classmethod copy attributes from the callable object, same as functools.wraps(). Thanks to this change, I was able to propose to PR 25354 "bpo-43680: _pyio.open() becomes a

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

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

[issue43654] IDLE: Applying settings disables tab completion

2021-04-12 Thread Mikhail
Mikhail added the comment: I also checked this behavior in Jython and IPython, and there errors are explicitly caused when putting/calling such values (I also checked on MicroPython online version, everything just hangs there). For IPython I created an issue on their Github, I'm thinking of

[issue39774] Missing documentation on how to make package executable as script

2021-04-12 Thread igo95862
Change by igo95862 : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41515] typing.get_type_hints generates KeyError

2021-04-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +24087 pull_request: https://github.com/python/cpython/pull/25352 ___ Python tracker ___

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-04-12 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +24090 pull_request: https://github.com/python/cpython/pull/25355 ___ Python tracker ___

[issue43680] Remove undocumented io.OpenWrapper and _pyio.OpenWrapper

2021-04-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24089 pull_request: https://github.com/python/cpython/pull/25354 ___ Python tracker ___

[issue43682] Make static methods created by @staticmethod callable

2021-04-12 Thread Mark Shannon
Mark Shannon added the comment: This is a significant change to the language. There should be a PEP, or at the very least a discussion on Python Dev. There may well be a very good reason why static methods have not been made callable before that you have overlooked. Changing static methods

[issue43811] Run GHA CI with multiple OpenSSL versions

2021-04-12 Thread Christian Heimes
Christian Heimes added the comment: Github selects required actions based on the "name" attribute of a job. Therefore I decided to keep the default "Ubuntu" job and moved the additional OpenSSL tests to another job. For future reference, my first approach was: strategy:

[issue34309] Trouble when reloading extension modules.

2021-04-12 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43723] Deprecate camelCase aliases from threading.py

2021-04-12 Thread Christian Heimes
Christian Heimes added the comment: New changeset 95bbb331ecb3ef5d05859d90b287cc3d27613c86 by Christian Heimes in branch 'master': bpo-43723: Fix deprecation error caused by thread.setDaemon() (GH-25361) https://github.com/python/cpython/commit/95bbb331ecb3ef5d05859d90b287cc3d27613c86

[issue43680] Remove undocumented io.OpenWrapper and _pyio.OpenWrapper

2021-04-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24091 pull_request: https://github.com/python/cpython/pull/25357 ___ Python tracker ___

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-04-12 Thread miss-islington
miss-islington added the comment: New changeset 04425a922b598d03770619b0c658ee9874113550 by Miss Islington (bot) in branch '3.8': bpo-41561: Fix testing with OpenSSL 1.0.2 (GH-25355) https://github.com/python/cpython/commit/04425a922b598d03770619b0c658ee9874113550 --

[issue43680] Remove undocumented io.OpenWrapper and _pyio.OpenWrapper

2021-04-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 77d668b1221d0f8c3e9d6b6199f67aaf3c45f040 by Victor Stinner in branch 'master': bpo-43680: _pyio.open() becomes a static method (GH-25354) https://github.com/python/cpython/commit/77d668b1221d0f8c3e9d6b6199f67aaf3c45f040 --

[issue43723] Deprecate camelCase aliases from threading.py

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

[issue43811] Run GHA CI with multiple OpenSSL versions

2021-04-12 Thread Christian Heimes
New submission from Christian Heimes : CI only tests one OpenSSL version, but Python supports multiple versions of OpenSSL. OpenSSL 1.0.2, 1.1.0, 1.1.1, and 3.0.0 have different APIs and behave differently. We should run minimal tests with all major OpenSSL versions to ensure that Python

[issue43723] Deprecate camelCase aliases from threading.py

2021-04-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9825bdfbd5c966abf1f1b7264992d722a94c9613 by Jelle Zijlstra in branch 'master': bpo-43723: Deprecate camelCase aliases from threading (GH-25174) https://github.com/python/cpython/commit/9825bdfbd5c966abf1f1b7264992d722a94c9613 --

[issue37804] Remove Thread.isAlive in Python 3.9

2021-04-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9825bdfbd5c966abf1f1b7264992d722a94c9613 by Jelle Zijlstra in branch 'master': bpo-43723: Deprecate camelCase aliases from threading (GH-25174) https://github.com/python/cpython/commit/9825bdfbd5c966abf1f1b7264992d722a94c9613 --

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

2021-04-12 Thread STINNER Victor
STINNER Victor added the comment: > This is correct, thanks! The problem is gone with git master version of > cython. master is a different version. I suggest you trying the 0.29.x branch which is the actively maintained stable branch. -- ___

[issue22393] multiprocessing.Pool shouldn't hang forever if a worker process dies unexpectedly

2021-04-12 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-04-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +24093 pull_request: https://github.com/python/cpython/pull/25359 ___ Python tracker ___

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

2021-04-12 Thread Ma Lin
Ma Lin added the comment: I think this change is safe. The behaviors should be exactly the same, except the iterators are different objects (obj vs obj._buffer). -- ___ Python tracker

[issue43811] Run GHA CI with multiple OpenSSL versions

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

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-04-12 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43723] Deprecate camelCase aliases from threading.py

2021-04-12 Thread Christian Heimes
Christian Heimes added the comment: > Usually, warnings are not treated as errors. Thanks for fixing test_asyncio! Tests should treat any unhandled deprecation warnings as a test failure. -- ___ Python tracker

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2021-04-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I have merged the PR, thank you to Cédric for the PR, and thank you to Steve for his review. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue33927] Allow json.tool to have identical infile and outfile

2021-04-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hello @pablogsal, What do you think about the PR of Rémi? Thank you, -- versions: -Python 3.7, Python 3.8, Python 3.9 ___ Python tracker

[issue43723] Deprecate camelCase aliases from threading.py

2021-04-12 Thread STINNER Victor
STINNER Victor added the comment: > Tests should treat any unhandled deprecation warnings as a test failure. libregrtest sets a sys.unraisablehook: a test is marked as "failed" if any "unraisable exception" is logged. libregrtest might use a hook on warnings to do the same: log the warning,

[issue43799] OpenSSL 3.0.0: define OPENSSL_API_COMPAT 1.1.1

2021-04-12 Thread Christian Heimes
Christian Heimes added the comment: OpenSSL 1.0.2, 1.1.0, 1.1.1 and 3.0.0 behave slightly differently. For example I'm still getting a warning with 1.1.0. Only 3.0.0 supports OPENSSL_NO_DEPRECATED. After multiple failed attempts I decided to set the API level to 1.1.1 and define the three

[issue43723] Deprecate camelCase aliases from threading.py

2021-04-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I opened a thread a year back on running tests with -Werror in CI. This issue still pops up when someone runs with -Wall and finds unhandled deprecation warnings. https://discuss.python.org/t/run-test-suite-with-werror-on-ci/2333 --

[issue43813] Denial of service on http.server module with large request method.

2021-04-12 Thread Mohammed Dief
New submission from Mohammed Dief : - Hello there, 2 days ago i discovered a DoS on http.server in python that allows me to take any python http.server down using less than 1k requests. i reported it to PSRT but they said i should report it here since http.server isn't for production. so

[issue43814] Fix the error message for disallowed __weakref__ slots

2021-04-12 Thread Géry
New submission from Géry : When ``` TypeError: __weakref__ slot disallowed: either we already got one, or __itemsize__ != 0 ``` is raised, the second condition `base->tp_itemsize != 0` (i.e. the base is a *variable-length* type, like `int`, `tuple` and `bytes`) in the error message is

[issue43814] Fix the error message for disallowed __weakref__ slots

2021-04-12 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +24096 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25362 ___ Python tracker ___

[issue43682] Make static methods created by @staticmethod callable

2021-04-12 Thread STINNER Victor
STINNER Victor added the comment: Mark Shannon: > Changing static methods to be callable will break backwards compatibility for > any code that tests `callable(x)` where `x` is a static method. Can you please elaborate on why this is an issue? In the pydoc case, it sounds like an

[issue43723] Deprecate camelCase aliases from threading.py

2021-04-12 Thread STINNER Victor
STINNER Victor added the comment: Oh by the way, if someone wants to enhance libregrtest / our CI, please open a new issue ;-) I'm not interested so, I didn't open a new issue :-) Someone also once proposed to add a post-commit buildbot using -Werror. It may be enough. --

[issue43351] `RecursionError` during deallocation

2021-04-12 Thread Andrew V. Jones
Andrew V. Jones added the comment: For us, this issue was resolved with moving to 3.9.2. I have closed it as it seems it was an "accidentally fixed" bug. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2021-04-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset e126547c070fbc080562abb08e16a2c93a8a805d by Cédric Krier in branch 'master': bpo-34311: Add locale.localize (GH-15275) https://github.com/python/cpython/commit/e126547c070fbc080562abb08e16a2c93a8a805d -- nosy: +matrixise

[issue35540] dataclasses.asdict breaks with defaultdict fields

2021-04-12 Thread Alexandru Coca
Alexandru Coca added the comment: I was wondering if this issue is still being tracked for resolution? I found the same bug in Python 3.8. -- nosy: +alexcoca ___ Python tracker

[issue43812] Tuple unpacking in getitem

2021-04-12 Thread Jeppe Dakin
New submission from Jeppe Dakin : This is similar to issue 32117 (I'm the author of the StackOverflow query referenced within it), which extends the tuple unpacking syntax to a small corner of the language: https://bugs.python.org/issue32117 Currently tuple unpacking is disallowed within

[issue43723] Deprecate camelCase aliases from threading.py

2021-04-12 Thread STINNER Victor
STINNER Victor added the comment: Thanks Jelle Zijlstra, I merged your PR! I close issue. Ok, aliases are now deprecated. If someone wants to actually remove the aliases, I suggest to help all projects still using them to fix their deprecation warnings:

[issue43682] Make static methods created by @staticmethod callable

2021-04-12 Thread Mark Shannon
Mark Shannon added the comment: Are you asking why breaking backwards compatibility is an issue? Or how it breaks backwards compatibility? pydoc could be changed to produce the proposed output, it doesn't need this change. We don't know what this change will break, but we do know that it is

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

2021-04-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24097 pull_request: https://github.com/python/cpython/pull/25363 ___ Python tracker ___

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

2021-04-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24098 pull_request: https://github.com/python/cpython/pull/25364 ___ Python tracker ___

[issue41661] os.path.relpath does not document ValueError on Windows with different drives

2021-04-12 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41661] os.path.relpath does not document ValueError on Windows with different drives

2021-04-12 Thread miss-islington
miss-islington added the comment: New changeset de06baa9de109a00c26de0dc5a248fe7aafe09f5 by Miss Islington (bot) in branch '3.9': bpo-41661: Document os.path.relpath() exception on Windows with different drives (GH-25346)

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-04-12 Thread Christian Heimes
Christian Heimes added the comment: New changeset 3447750073aff229b049e4ccd6217db2811dcfd1 by Christian Heimes in branch 'master': bpo-41561: Fix testing with OpenSSL 1.0.2 (GH-25355) https://github.com/python/cpython/commit/3447750073aff229b049e4ccd6217db2811dcfd1 --

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-04-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +24092 pull_request: https://github.com/python/cpython/pull/25358 ___ Python tracker ___

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2021-04-12 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- versions: +Python 3.10 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43723] Deprecate camelCase aliases from threading.py

2021-04-12 Thread Christian Heimes
Christian Heimes added the comment: The commit broke my PR https://github.com/python/cpython/pull/25329. You missed a call in asyncio tests. -- ___ Python tracker ___

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2021-04-12 Thread miss-islington
miss-islington added the comment: New changeset 0983e01837714524fb164e784a8e96a2bc4bdf94 by Miss Islington (bot) in branch '3.9': bpo-41561: Fix testing with OpenSSL 1.0.2 (GH-25355) https://github.com/python/cpython/commit/0983e01837714524fb164e784a8e96a2bc4bdf94 --

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

2021-04-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 2459b92a4db69d9b14d0a86a9b81cc075894e910 by Victor Stinner in branch 'master': bpo-43774: Remove --without-cycle-gc doc (GH-25364) https://github.com/python/cpython/commit/2459b92a4db69d9b14d0a86a9b81cc075894e910 -- nosy:

[issue43797] Improve syntax error for invalid comparisons

2021-04-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset b86ed8e3bb41ede77eeab4a8bb4e2b91a8065283 by Pablo Galindo in branch 'master': bpo-43797: Improve syntax error for invalid comparisons (#25317) https://github.com/python/cpython/commit/b86ed8e3bb41ede77eeab4a8bb4e2b91a8065283 --

[issue43797] Improve syntax error for invalid comparisons

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

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

2021-04-12 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43816] Missing 'extern "C"' for _Py_ctype_table

2021-04-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: In fact, _Py_ctype_table is limited to the internal parts of the interpreter. So in this case, this one could not be used in an external tool. You can read: https://docs.python.org/3/c-api/stable.html I am not sure that you correctly use the API.

[issue43816] Missing 'extern "C"' for _Py_ctype_table

2021-04-12 Thread Andrew V. Jones
Andrew V. Jones added the comment: > I am happy to re-assign this as a Cython bug, but the fact it is fixed with > an `extern "C"` in Python.h, really makes it feel like it is a Python-proper > issue and not a "user" issue. > Just to extend on this: 1) The Cython-generated code uses

[issue43815] documentation for types.new_class() mention misleading default for exec_body

2021-04-12 Thread Eric V. Smith
New submission from Eric V. Smith : https://github.com/python/cpython/blob/3.8/Lib/types.py The documentation says "If no callback is provided, it has the same effect as passing in lambda ns: ns." I read this as saying that the callback should return the namespace, but in reality the return

[issue43816] Missing 'extern "C"' for _Py_ctype_table

2021-04-12 Thread Andrew V. Jones
New submission from Andrew V. Jones : With Python 3.9.4, and when compiling with Visual Studio 2019, we have noticed that the variable `_Py_ctype_table` is *not* scoped with in an `extern "C"` block, and where the Python library (`python39.lib`) *has* been compiled with a C compiler. This

[issue43816] Missing 'extern "C"' for _Py_ctype_table

2021-04-12 Thread Andrew V. Jones
Change by Andrew V. Jones : -- keywords: +patch pull_requests: +24099 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25365 ___ Python tracker ___

[issue43816] Missing 'extern "C"' for _Py_ctype_table

2021-04-12 Thread Andrew V. Jones
Andrew V. Jones added the comment: > In fact, _Py_ctype_table is limited to the internal parts of the interpreter. > So in this case, this one could not be used in an external tool. > Hmm, so why is this "exposed" by the "world-facing" `Python.h` file? I should say: we found this bug via

[issue42248] Raised exception in Enum keeping user objects alive unnecessarily

2021-04-12 Thread Ethan Furman
Ethan Furman added the comment: New changeset 8c14f5a787b21d5a1eae5d5ee981431d1c0e055f by Ethan Furman in branch 'master': bpo-42248: [Enum] ensure exceptions raised in ``_missing_`` are released (GH-25350) https://github.com/python/cpython/commit/8c14f5a787b21d5a1eae5d5ee981431d1c0e055f

[issue41661] os.path.relpath does not document ValueError on Windows with different drives

2021-04-12 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +24100 pull_request: https://github.com/python/cpython/pull/25366 ___ Python tracker

[issue41661] os.path.relpath does not document ValueError on Windows with different drives

2021-04-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +24101 pull_request: https://github.com/python/cpython/pull/25367 ___ Python tracker ___

[issue41661] os.path.relpath does not document ValueError on Windows with different drives

2021-04-12 Thread Steve Dower
Steve Dower added the comment: New changeset 67c0b3d89c4da9750fdb43fc66d3924681b22d2e by Zackery Spytz in branch 'master': bpo-41661: Document os.path.relpath() exception on Windows with different drives (GH-25346)

[issue30528] ipaddress.IPv{4,6}Network.reverse_pointer is broken

2021-04-12 Thread jana
jana added the comment: Running into the same problem here. Within the zonefile rfc1035 defines a usecase for ipv4, but I can't find anything similar for IPv6. The feature is also rather obscure. The zone however is used in the zonefile as origin and in bind in the named.conf to refer to

[issue30528] ipaddress.IPv{4,6}Network.reverse_pointer is broken

2021-04-12 Thread jana
jana added the comment: This code does the trick: ipn = ipaddress.ip_network("2a0c:ac10::/32") prefix = ipn.prefixlen if ipn.version == 6: rest = int((ipn.max_prefixlen - prefix) / 4) elif ipn.version == 4: rest = int((ipn.max_prefixlen - prefix) / 8) return

[issue43803] ctypes string_at/wstring_at - bad argument name used in docs and in docstring

2021-04-12 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Yeah, you're right and also it is true that changing the docstring to "ptr" can succinctly say "Return the byte string at void *ptr." But it's a kind of problem if different argument names are used for the same argument in docstring, argument list and

[issue42248] Raised exception in Enum keeping user objects alive unnecessarily

2021-04-12 Thread Ethan Furman
Change by Ethan Furman : -- pull_requests: +24102 pull_request: https://github.com/python/cpython/pull/25369 ___ Python tracker ___

[issue42248] Raised exception in Enum keeping user objects alive unnecessarily

2021-04-12 Thread Ethan Furman
Ethan Furman added the comment: New changeset f396a1a940f8608a4be2a9ac4ef82e37c198ecd3 by Ethan Furman in branch '3.8': [3.8] bpo-42248: [Enum] ensure exceptions raised in ``_missing_`` are released (GH-25350). (GH-25369)

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2021-04-12 Thread Ethan Furman
Ethan Furman added the comment: Eryk, I'm not sure if you are agreeing or disagreeing with me. :) On Windows it sounds like O_TEMPORARY buys us guaranteed file deletion, but costs us easy sharing of file resources and a difference in semantics between Windows and non-Windows. Is the

[issue30528] ipaddress.IPv{4,6}Network.reverse_pointer is broken

2021-04-12 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 6.0 -> 7.0 pull_requests: +24104 pull_request: https://github.com/python/cpython/pull/25371 ___ Python tracker ___

[issue43817] Add typing.get_annotations()

2021-04-12 Thread Larry Hastings
Larry Hastings added the comment: > I'd say just submit the PR. Shouldn't be problematic. Okey-doke, I can do it. Though I have plenty to do at the moment, though, so it wouldn't be this week. Is there anybody who would *enjoy* taking this on, who we could farm it out to? If not, that's

[issue43817] Add typing.get_annotations()

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

[issue42248] Raised exception in Enum keeping user objects alive unnecessarily

2021-04-12 Thread Ethan Furman
Change by Ethan Furman : -- pull_requests: +24103 pull_request: https://github.com/python/cpython/pull/25370 ___ Python tracker ___

[issue43812] Tuple unpacking in getitem

2021-04-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am closing this as duplicate of https://www.python.org/dev/peps/pep-0646, but feel free to reopen if you think there is some missing considerations. -- resolution: -> duplicate stage: -> resolved status: open -> closed

[issue43816] Missing 'extern "C"' for _Py_ctype_table

2021-04-12 Thread Stefan Behnel
Stefan Behnel added the comment: These macros are a sort-of documented part of the C-API. At least, they were mentioned in a What's New document: https://docs.python.org/3/whatsnew/2.7.html?highlight=py_isspace#build-and-c-api-changes They were added here, for the Py2.7 release:

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2021-04-12 Thread Steve Dower
Steve Dower added the comment: O_TEMPORARY is clearly not the right option here, and we should just move the unlink call into __exit__ and attempt it even if close() has been called. Windows's "delete on close" functionality is great, but if you haven't designed for its semantics, it's

[issue41515] typing.get_type_hints generates KeyError

2021-04-12 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset a9cf69df2e031d6157f01289f66ca9cf723ceb5c by Karthikeyan Singaravelan in branch 'master': bpo-41515: Fix KeyError raised in get_type_hints (GH-25352) https://github.com/python/cpython/commit/a9cf69df2e031d6157f01289f66ca9cf723ceb5c

[issue43804] Add more info about building C/C++ Extensions on Windows using MSVC

2021-04-12 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Kindly have a review of my PR. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43812] Tuple unpacking in getitem

2021-04-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This is currently being proposed as part of https://www.python.org/dev/peps/pep-0646. -- nosy: +pablogsal ___ Python tracker ___

[issue41515] typing.get_type_hints generates KeyError

2021-04-12 Thread STINNER Victor
STINNER Victor added the comment: This change introduced a regression: https://buildbot.python.org/all/#/builders/96/builds/1012 $ ./python -m test test___all__ 0:00:00 load avg: 0.28 Run tests sequentially 0:00:00 load avg: 0.28 [1/1] test___all__ test test___all__ failed -- Traceback (most

[issue41515] typing.get_type_hints generates KeyError

2021-04-12 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks -- odd this didn't fail in CI. We'll get it fixed. -- ___ Python tracker ___ ___

[issue41515] typing.get_type_hints generates KeyError

2021-04-12 Thread STINNER Victor
STINNER Victor added the comment: > Thanks -- odd this didn't fail in CI. The CI runs tests with "make buildbottest" which uses the -w option: -w, --verbose2re-run failed tests in verbose mode When test___all__ is re-run in verbose mode, it doesn't fail: "== Tests result: FAILURE

[issue43492] Upgrade to SQLite 3.35.4 in macOS and Windows

2021-04-12 Thread Big Stone
Big Stone added the comment: 3.35.4 is there -- nosy: +Big Stone ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42916] Support for DICOM image file format in imghdr module

2021-04-12 Thread Ross Rhodes
Ross Rhodes added the comment: PR already open to support DICOM based on the first 132 characters. Marked “stale” since I haven’t had any feedback on GitHub, yet. -- ___ Python tracker

[issue43816] Missing 'extern "C"' for _Py_ctype_table

2021-04-12 Thread Andrew V. Jones
Andrew V. Jones added the comment: > 1) The Cython-generated code uses `Py_ISSPACE` (and not `_Py_ctype_table`), > but the expansion of the macro `Py_ISSPACE` then adds `_Py_ctype_table` to > the user's code > I wrote this up as a Cython bug here (just to see if the Cython team consider

[issue43492] Upgrade to SQLite 3.35.4 in macOS and Windows

2021-04-12 Thread Steve Dower
Steve Dower added the comment: It's been a busy month for the SQLite team... hope they're doing okay. Let's give this one a few weeks, just in case. -- ___ Python tracker

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

2021-04-12 Thread Guido van Rossum
Guido van Rossum added the comment: Batuhan, can you summarize the argument from the thread? What do you think yourself? Myself, I'm not sure either way, but it seems okay to remove the remnant bytecode. -- ___ Python tracker

[issue43817] Add typing.eval_annotations()

2021-04-12 Thread Larry Hastings
New submission from Larry Hastings : Currently, with PEP 563 looming over us, people who use annotations for something besides type hints are kind of stuck. Converting stringized annotations back into useful values is a complicated problem, and there's only function in the standard library

[issue43817] Add typing.get_annotations()

2021-04-12 Thread Guido van Rossum
Guido van Rossum added the comment: It's fair that get_type_hints() does too much. But what does your proposed function do besides this? {k: eval(v) for k, b in x.__annotations__.items()} ? -- ___ Python tracker

[issue43817] Add typing.get_annotations()

2021-04-12 Thread Guido van Rossum
Guido van Rossum added the comment: I'd say just submit the PR. Shouldn't be problematic. (Have you decided what to do if the eval() fails?) -- ___ Python tracker ___

  1   2   >