[issue46961] Caching/interning of small ints sometimes fails

2022-03-13 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch pull_requests: +29942 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31843 ___ Python tracker ___ _

[issue47002] argparse - "expected one argument" when used -: in argument

2022-03-13 Thread Pythass
New submission from Pythass : By using argparse, and by passing a string as argument that has both a dash "-" and colon ":", python returns "expected one argument" error, despite it works when I use only "-" without ":". An example of code is attached at the ticket. Examples of triggering "e

[issue46961] Caching/interning of small ints sometimes fails

2022-03-13 Thread Alex Waygood
Change by Alex Waygood : -- nosy: -AlexWaygood ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue47002] argparse - "expected one argument" when used -: in argument

2022-03-13 Thread Eric V. Smith
Eric V. Smith added the comment: Here's a simplified reproducer: import argparse parser = argparse.ArgumentParser() parser.add_argument("-u", "--utc", choices=["-1:00"]) args = parser.parse_args() I assume this is related to argparse guessing if an argument is a negative number. See https:/

[issue46890] getpath problems with framework build

2022-03-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've updated the title to better reflect the actual problem. An update on the current state of this issue: I haven't looked at the code for a couple of days because because I got stuck. With a fresh mind I've continued debugging and noticed that I'm looking

[issue43224] Add support for PEP 646

2022-03-13 Thread Matthew Rahtz
Change by Matthew Rahtz : -- pull_requests: +29943 pull_request: https://github.com/python/cpython/pull/31844 ___ Python tracker ___ ___

[issue45995] string formatting: normalize negative zero

2022-03-13 Thread Mark Dickinson
Mark Dickinson added the comment: I forgot to update here: > PEP at https://github.com/python/peps/pull/2295 For the record, PEP 682 has been accepted. -- ___ Python tracker ___

[issue46940] Suggestion messages don't properly work in nested getattr calls

2022-03-13 Thread Zara Youmi
Change by Zara Youmi : -- components: +2to3 (2.x to 3.x conversion tool), C API, Extension Modules, IO, Installation, SSL, Unicode, Windows nosy: +ezio.melotti, paul.moore, steve.dower, tim.golden, vstinner, zach.ware, zarayoumi3 type: -> resource usage Added file: https://bugs.pytho

[issue37355] SSLSocket.read does a GIL round-trip for every 16KB TLS record

2022-03-13 Thread Safihre
Safihre added the comment: Pinging in hope for a review on https://github.com/python/cpython/pull/31492 -- ___ Python tracker ___ _

[issue47002] argparse - "expected one argument" when used -: in argument

2022-03-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue47002] argparse - "expected one argument" when used -: in argument

2022-03-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems related to https://bugs.python.org/issue9334 -- nosy: +xtreak ___ Python tracker ___

[issue43224] Add support for PEP 646

2022-03-13 Thread Matthew Rahtz
Change by Matthew Rahtz : -- pull_requests: +29944 pull_request: https://github.com/python/cpython/pull/31845 ___ Python tracker ___ ___

[issue43224] Add support for PEP 646

2022-03-13 Thread Matthew Rahtz
Change by Matthew Rahtz : -- pull_requests: +29945 pull_request: https://github.com/python/cpython/pull/31846 ___ Python tracker ___ ___

[issue43743] BlockingIOError: [Errno 11] Resource temporarily unavailable: on GPFS.

2022-03-13 Thread Marvin Poul
Marvin Poul added the comment: I hope you don't mind me necro posting, but I ran into this issue again and have a small patch to solve it. I attached an MWE that triggers the BlockingIOError reliably on ext4 filesystems in linux 4.12.14 and python 3.8.12. Running under strace -e sendfile give

[issue43743] BlockingIOError: [Errno 11] Resource temporarily unavailable: on GPFS.

2022-03-13 Thread Marvin Poul
Marvin Poul added the comment: Here's the small patch. Sadly I have no overview what the affected linux kernel version are. I guess technically you can all this "working around a bug in specific linux version", but since it's a very minor change that saves one syscall even for non-breaking

[issue47001] deadlock in ctypes?

2022-03-13 Thread Eryk Sun
Eryk Sun added the comment: Pointers to resource type/name strings use the lower 16-bit range for integer identifiers such as RT_ICON (3) and RT_GROUP_ICON (14). C code checks for these cases using the IS_INTRESOURCE() macro. It's incorrect to use a simple C string pointer type such as ctype

[issue46995] Make Task.set_name() mandatory for third-parties

2022-03-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 7e473e94a52024ac821dd2f206290423e4987ead by Andrew Svetlov in branch 'main': bpo-46995: Deprecate missing asyncio.Task.set_name() for third-party task implementations (GH-31838) https://github.com/python/cpython/commit/7e473e94a52024ac821dd2f20

[issue46995] Make Task.set_name() mandatory for third-parties

2022-03-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue46805] Add low level UDP socket functions to asyncio

2022-03-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 9f04ee569cebb8b4c6f04bea95d91a19c5403806 by Alex Grönholm in branch 'main': bpo-46805: Add low level UDP socket functions to asyncio (GH-31455) https://github.com/python/cpython/commit/9f04ee569cebb8b4c6f04bea95d91a19c5403806 -- __

[issue46805] Add low level UDP socket functions to asyncio

2022-03-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue23743] Python crashes upon exit if importing g++ compiled mod after importing gcc compiled mod

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: IIUC: (1) 2.7 is well past its EOL date, so it's not clear whether this issue is still there. (2) mingw is not supported and distutils is deprecated, so it's not clear if it's relevant. (3) it was, to begin with, a documentation issue and it was not clear w

[issue12516] imghdr.what should take one argument

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: imghdr is deprecated as per PEP 594, so there won't be more enhancements to it. -- nosy: +iritkatriel resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue28591] imghdr doesn't recognize some jpeg formats

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: imghdr is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue12516] imghdr.what should take one argument

2022-03-13 Thread Irit Katriel
Change by Irit Katriel : -- resolution: rejected -> wont fix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21574] Port image types detections from PIL to the imghdr module

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: imghdr is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue27121] imghdr does not support jpg files with Lavc bytes

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: imghdr is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue26337] Bypass imghdr module determines the type of image

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: imghdr is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue43194] Add JFXX as jpeg marker in imghdr module

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: imghdr is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue6497] Support for digital Cinema/film DPX and Kodak Cineon image file formats in imghdr module

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: imghdr is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

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

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: imghdr is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue9544] [doc] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: xdrlib is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue34165] uu.decode() raises binascii.Error instead of uu.Error on invalid data

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: uu is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue18979] Use argparse in the uu module

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: uu is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue11352] Update cgi module doc

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: cgi is deprecated as per PEP 594, so there won't be further enhancements to it. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34129] CGITB does not mangle variables names

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: cgi/cgitb are deprecated as per PEP 594, so there won't be further enhancements to them. -- nosy: +iritkatriel resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32669] cgitb file to print OSError exceptions

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: cgi/cgitb are deprecated as per PEP 594, so there won't be further enhancements to them. -- nosy: +iritkatriel resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue1047397] cgitb failures

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: cgi/cgitb are deprecated as per PEP 594, so there won't be further enhancements to them. -- nosy: +iritkatriel resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33507] Improving the html rendered by cgitb.html

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: cgi/cgitb are deprecated as per PEP 594, so there won't be further enhancements to them. -- nosy: +iritkatriel resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue15749] cgitb prints html for text when display disabled.

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: cgi/cgitb are deprecated as per PEP 594, so there won't be further enhancements to them. -- nosy: +iritkatriel resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue1178136] cgitb.py support for frozen images

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: cgi/cgitb are deprecated as per PEP 594, so there won't be further enhancements to them. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue12026] Support more of MSI api

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: msilib is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue12201] Returning FILETIME is unsupported in msilib.SummaryInformation.GetProperty()

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: msilib is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue8526] msilib doesn't support multiple CAB instances in same installer

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: msilib is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue47003] Cleanup _overlapped module

2022-03-13 Thread Andrew Svetlov
New submission from Andrew Svetlov : 1. CancelIoEx is mandatory for supported Windows versions, there is no need for dynamic checks. 2. Argument Clinic supports Py_buffer, use it. -- components: asyncio messages: 415064 nosy: asvetlov, yselivanov priority: normal severity: normal statu

[issue47003] Cleanup _overlapped module

2022-03-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +29946 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31848 ___ Python tracker ___ _

[issue8934] aifc should use str instead of bytes (wave, sunau compatibility)

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: aifc is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue13681] Aifc read compressed frames fix

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: aifc is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue22094] oss_audio_device.write(data) produces short writes

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: ossaudiodev is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue47002] argparse - "expected one argument" when used -: in argument

2022-03-13 Thread Pythass
Pythass added the comment: The curious aspect is that for: import argparse parser = argparse.ArgumentParser() parser.add_argument("-u", "--utc", choices=["-1"]) args = parser.parse_args() it works. But if we use the colon (:) character as: import argparse parser = argparse.ArgumentParser() pa

[issue46985] Upgrade ensurepip bundled pip to 22.0.4

2022-03-13 Thread Ned Deily
Ned Deily added the comment: New changeset d87f1b787ed38dfd307d82452f2efe9dc5b93942 by Pradyun Gedam in branch 'main': bpo-46985: Upgrade bundled pip to 22.0.4 (GH-31819) https://github.com/python/cpython/commit/d87f1b787ed38dfd307d82452f2efe9dc5b93942 -- __

[issue46985] Upgrade ensurepip bundled pip to 22.0.4

2022-03-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +29947 pull_request: https://github.com/python/cpython/pull/31849 ___ Python tracker _

[issue46985] Upgrade ensurepip bundled pip to 22.0.4

2022-03-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +29948 pull_request: https://github.com/python/cpython/pull/31850 ___ Python tracker ___ __

[issue46774] Importlib.metadata.version picks first distribution not latest

2022-03-13 Thread Jason R. Coombs
Jason R. Coombs added the comment: The behavior you describe is intentional _and_ deterministic. The library discovers distributions in the order found based on the search path provided, with the search path defaulting to sys.path. The expectation is therefore that the metadata should be dis

[issue46985] Upgrade ensurepip bundled pip to 22.0.4

2022-03-13 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +29949 pull_request: https://github.com/python/cpython/pull/31851 ___ Python tracker ___ ___

[issue46985] Upgrade ensurepip bundled pip to 22.0.4

2022-03-13 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +29950 pull_request: https://github.com/python/cpython/pull/31852 ___ Python tracker ___ ___

[issue43253] asyncio open_connection fails when a socket is explicitly closed

2022-03-13 Thread Maximilian Hils
Maximilian Hils added the comment: We are hitting the same traceback with mitmproxy on Windows without ever passing a socket object to open_connection. In other words, this can be triggered without performing any action on 'sock' due to some race conditions in the Windows network stack. I un

[issue43253] asyncio open_connection fails when a socket is explicitly closed

2022-03-13 Thread Maximilian Hils
Change by Maximilian Hils : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-13 Thread Ned Deily
Ned Deily added the comment: New changeset c99ac3c364ee21be72263791b71ee8b55f64de08 by Pradyun Gedam in branch 'main': bpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820) https://github.com/python/cpython/commit/c99ac3c364ee21be72263791b71ee8b55f64de08 -- ___

[issue46774] Importlib.metadata.version picks first distribution not latest

2022-03-13 Thread Jason R. Coombs
Jason R. Coombs added the comment: Aha. I learned how to run commands in the poetry environment... and how to locate files in that environment. With that, I figured out where the environment is and where the package metadata is coming from: ``` $ docker run -it @$(docker build -q .) bash -c

[issue46985] Upgrade ensurepip bundled pip to 22.0.4

2022-03-13 Thread miss-islington
miss-islington added the comment: New changeset 1ceda9787f586e11ccd2a94171422a2d70622a27 by Miss Islington (bot) in branch '3.10': [3.10] bpo-46985: Upgrade bundled pip to 22.0.4 (GH-31819) (GH-31849) https://github.com/python/cpython/commit/1ceda9787f586e11ccd2a94171422a2d70622a27

[issue47004] Apply bugfixes from importlib_metadata 4.11.3.

2022-03-13 Thread Jason R. Coombs
Change by Jason R. Coombs : -- assignee: -> jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue47004] Apply bugfixes from importlib_metadata 4.11.3.

2022-03-13 Thread Jason R. Coombs
New submission from Jason R. Coombs : Importlib_metadata 4.11.1-3 introduced a few bug fixes. Importantly, 4.11.2 fixed a [serious defect](https://github.com/python/importlib_metadata/issues/369). Let's incorporate those fixes into CPython. -- messages: 415075 nosy: jaraco priority:

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +29951 pull_request: https://github.com/python/cpython/pull/31853 ___ Python tracker _

[issue46985] Upgrade ensurepip bundled pip to 22.0.4

2022-03-13 Thread miss-islington
miss-islington added the comment: New changeset 4f340b07392dd50800f255ceee0ec1b7edd77dc9 by Miss Islington (bot) in branch '3.9': [3.9] bpo-46985: Upgrade bundled pip to 22.0.4 (GH-31819) (GH-31850) https://github.com/python/cpython/commit/4f340b07392dd50800f255ceee0ec1b7edd77dc9 --

[issue47005] Improve performance of bytes_repeat

2022-03-13 Thread Pieter Eendebak
New submission from Pieter Eendebak : The bytearray_repeat and bytearray_irepeat are inefficient for small arrays and a high number of repeats. This can be improved by using the same approach is in the corresponding bytes_repeat method. Microbenchmark: python -m pyperf timeit "b=bytearray([1

[issue32007] deprecate the nis module

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: is deprecated as per PEP 594, so there is no need for a separate issue for it. -- nosy: +iritkatriel resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue2148] nis module not supporting group aliases

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: nis is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue47004] Apply bugfixes from importlib_metadata 4.11.3.

2022-03-13 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +29952 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31854 ___ Python tracker ___

[issue12506] NIS module cant handle multiple NIS map entries for the same GID

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: nis is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue40735] test_nntplib depends on unreliable external servers

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: nntplib is deprecated as per PEP 594, so there won't be further enhancements to it. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-13 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +29953 pull_request: https://github.com/python/cpython/pull/31855 ___ Python tracker ___ ___

[issue47005] Improve performance of bytes_repeat

2022-03-13 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +29954 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31856 ___ Python tracker _

[issue1186900] nntplib shouldn't raise generic EOFError

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: nntplib is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue43253] asyncio open_connection fails when a socket is explicitly closed

2022-03-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: not a bug -> status: closed -> ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46967] Type union for except

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: > I don't think that `except A|B` looks better than `except (A, B)` I agree. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-13 Thread miss-islington
miss-islington added the comment: New changeset 25962e4e60235645f945d23281431b30b3c3d573 by Miss Islington (bot) in branch '3.10': bpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820) https://github.com/python/cpython/commit/25962e4e60235645f945d23281431b30b3c3d573 -- ___

[issue37355] SSLSocket.read does a GIL round-trip for every 16KB TLS record

2022-03-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- nosy: -asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue42548] debugger stops at breakpoint of `pass` that is not actually reached

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: On second thought I won't keep this open till it expires. This is a low priority bug which no longer exists in new versions because it was fixed by accident due to another change. I don't believe anyone would care enough about this to investigate how it accide

[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: We have agreed on python-dev [1] that the cpython changes will not be reverted, and the issue will be fixed in cython. So I am closing this again. [1] https://mail.python.org/archives/list/python-...@python.org/message/BHIQL4P6F7OPMCAP6U24XEZUPQKI62UT/ --

[issue45744] Fix Flawfinder C Errors

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: There is not enough information in this report. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue46785] On Windows, os.stat() can fail if called while another process is creating or deleting the file

2022-03-13 Thread Itai Steinherz
Itai Steinherz added the comment: Thanks for the comprehensive reply, Eryk! I have a few questions regarding your suggestion: 1. Why catch ERROR_NOT_READY and ERROR_BAD_NET_NAME as well? How do you know that FindFirstFileW() may return them? 2. Why can't the filename of the "foo"-like file i

[issue47004] Apply bugfixes from importlib_metadata 4.11.3.

2022-03-13 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset b1e286860742e7ba6fadc75e3ddb6c2899a56919 by Jason R. Coombs in branch 'main': bpo-47004: Sync with importlib_metadata 4.11.3. (#31854) https://github.com/python/cpython/commit/b1e286860742e7ba6fadc75e3ddb6c2899a56919 -- _

[issue2604] doctest.DocTestCase fails when run repeatedly

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: I've reproduced this on 3.11 as well. The patch here needs to be converted to a GitHub PR and then tested and reviewed. The patch on issue9736 has a unit test as well, which should be included (because the pjd's patch doesn't have one). -- keywords:

[issue46985] Upgrade ensurepip bundled pip to 22.0.4

2022-03-13 Thread Ned Deily
Ned Deily added the comment: New changeset 5a8e968c38cc239c07eba15ded439a12818a852f by Ned Deily in branch '3.7': bpo-46985: Upgrade bundled pip to 22.0.4 (GH-31819) (GH-31852) https://github.com/python/cpython/commit/5a8e968c38cc239c07eba15ded439a12818a852f --

[issue47004] Apply bugfixes from importlib_metadata 4.11.3.

2022-03-13 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +29955 pull_request: https://github.com/python/cpython/pull/31857 ___ Python tracker ___ _

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-13 Thread Ned Deily
Ned Deily added the comment: New changeset bda64b3c0c4e45de4c82ba1b8722f56db5ac88ba by Ned Deily in branch '3.9': bpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820) (GH-31855) https://github.com/python/cpython/commit/bda64b3c0c4e45de4c82ba1b8722f56db5ac88ba -- _

[issue18820] json.dump() ignores its 'default' option when serializing dictionary keys

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3.6 ___ Python tracker ___ __

[issue46785] On Windows, os.stat() can fail if called while another process is creating or deleting the file

2022-03-13 Thread Itai Steinherz
Change by Itai Steinherz : -- keywords: +patch pull_requests: +29956 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/31858 ___ Python tracker __

[issue37355] SSLSocket.read does a GIL round-trip for every 16KB TLS record

2022-03-13 Thread Christian Heimes
Christian Heimes added the comment: We have very few people that are familar with ssl module and especially with its I/O layer. I'm busy with other topics. Others are directly affected by war in Ukraine. I'm not a particular fan of the new "eager_recv" property introduced by your PR. Also t

[issue47004] Apply bugfixes from importlib_metadata 4.11.3.

2022-03-13 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +29957 pull_request: https://github.com/python/cpython/pull/31859 ___ Python tracker ___ _

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-13 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +29958 pull_request: https://github.com/python/cpython/pull/31860 ___ Python tracker ___ ___

[issue37355] SSLSocket.read does a GIL round-trip for every 16KB TLS record

2022-03-13 Thread Safihre
Safihre added the comment: Implementing for write is not needed as OpenSSL's SSL_write_ex that is used by write() already writes the whole buffer at once. Only reading OpenSSL does in the 16k segments. The new option was introduced to prevent the compatibility problems for code that would n

[issue46785] On Windows, os.stat() can fail if called while another process is creating or deleting the file

2022-03-13 Thread Eryk Sun
Eryk Sun added the comment: > Why catch ERROR_NOT_READY and ERROR_BAD_NET_NAME as well? When os.stat() falls back on FindFirstFileW(), an error that means the file doesn't exist should be kept. ERROR_BAD_NET_NAME is an obvious error to keep because it's already mapped to ENOENT (i.e. file no

[issue47002] argparse - "expected one argument" when used -: in argument

2022-03-13 Thread paul j3
paul j3 added the comment: '-1' and '-1.23' are recognized as numbers, and treated as arguments. '-1' requires some special handling because it is allowed as a flag, as in parser.add_argument('-1','--one') '-1:00' on the other hand is no different from a string like '-foo'. Default is

[issue46829] Confusing CancelError message if multiple cancellations are scheduled

2022-03-13 Thread Yury Selivanov
Yury Selivanov added the comment: Andrew asked me for my opinion on the matter -- I think we should get rid of the message. Exception messages for "signals" can be easily lost if an exception was re-raised. If the reason of why something is being cancelled is important (in my experience it

[issue46829] Confusing CancelError message if multiple cancellations are scheduled

2022-03-13 Thread Yury Selivanov
Yury Selivanov added the comment: IOW I think that supporting custom messages is a needless complication of our API. Given how complex task trees can become with TaskGroups collecting those messages and presenting them all to the user isn't trivial, showing just first/last defeats the purpos

[issue47006] PEP 646: Decide on substitution behavior

2022-03-13 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : We've had some disagreement about the behavior of TypeVarTuple substitution related to PEP 646, and the discussion has now spilled around multiple PRs. I'd like to use this issue to come to an agreement so we don't have to chase through so many different p

[issue47006] PEP 646: Decide on substitution behavior

2022-03-13 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- nosy: +mrahtz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue46994] Accept explicit contextvars.Context in asyncio create_task() API

2022-03-13 Thread Yury Selivanov
Yury Selivanov added the comment: Yeah, +1 to add a parameter. Fwiw it was on my idea list when i was working on the pep -- ___ Python tracker ___ ___

[issue46986] Upgrade ensurepip bundled setuptools to 60.9.3

2022-03-13 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +29959 pull_request: https://github.com/python/cpython/pull/31861 ___ Python tracker ___ ___

  1   2   >