[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +23549 pull_request: https://github.com/python/cpython/pull/24783 ___ Python tracker

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset c25910a135c2245accadb324b40dd6453015e056 by Gregory P. Smith in branch 'master': bpo-43332: Buffer proxy connection setup packets before sending. (GH-24780) https://github.com/python/cpython/commit/c25910a135c2245accadb324b40dd6453015e056

[issue43431] Subprocess timeout causes output to be returned as bytes in text mode

2021-03-07 Thread Jordan Macdonald
New submission from Jordan Macdonald : Passing the argument `text=True` to `subprocess.run()` is supposed to mean that any captured output of the called process is automatically decoded and retuned to the user as test instead of bytes. However, if you give a timeout and that timeout expires,

[issue31466] No easy way to change float formatting when subclassing encoder.JSONEncoder

2021-03-07 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43420] Optimize rational arithmetics

2021-03-07 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: On Sun, Mar 07, 2021 at 10:34:24PM +, Aaron Meurer wrote: > I'm surprised to hear that the "typical use-case" of Fraction > is fractions converted from floats. For statistics module - that may be true. Unfortunately, no (other) practical

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-07 Thread Senthil Kumaran
Change by Senthil Kumaran : -- versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43430] Exception raised when attempting to create Enum via functional API

2021-03-07 Thread Ethan Furman
Change by Ethan Furman : -- assignee: -> ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43430] Exception raised when attempting to create Enum via functional API

2021-03-07 Thread Suhail S.
Change by Suhail S. : -- nosy: +barry, eli.bendersky, ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43430] Exception raised when attempting to create Enum via functional API

2021-03-07 Thread Suhail S.
New submission from Suhail S. : It is possible to create custom Enum classes with a metaclass that is a subtype of EnumMeta. It is also possible to inherit from such an enumeration to create another enumeration. However, attempting to do so via the functional API raises an exception. See

[issue43428] Sync importlib_metadata enhancements through 3.7.

2021-03-07 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +23548 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24782 ___ Python tracker ___

[issue43379] Pasting multiple lines in the REPL is broken since 3.9

2021-03-07 Thread Ned Deily
Ned Deily added the comment: It certainly could be an issue with using GNU readline vs libedit and Terry is correct that you should follow up with Homebrew. But I don't think you stated from which code editor application you were copying from; that could also make a difference. In any case,

[issue42600] Cancelling tasks waiting for asyncio.Conditions crashes w/ RuntimeError: Lock is not acquired.

2021-03-07 Thread Daniele Varrazzo
Daniele Varrazzo added the comment: I have stumbled in this bug, or something similar, implementing psycopg3 async connection pool. A function such as the following fails but only in Python 3.6 (tested 3.6.12): async def wait(self, timeout: float) -> AsyncConnection: """Wait for

[issue43429] mmap.size() raises OSError on Unix for anonymous memory

2021-03-07 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +23547 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24781 ___ Python tracker ___

[issue43429] mmap.size() raises OSError on Unix for anonymous memory

2021-03-07 Thread Zackery Spytz
New submission from Zackery Spytz : For anonymous memory, mmap.size() works without issue on Windows, but it raises OSError on Unix. -- components: Extension Modules messages: 388252 nosy: ZackerySpytz priority: normal severity: normal status: open title: mmap.size() raises OSError on

[issue43379] Pasting multiple lines in the REPL is broken since 3.9

2021-03-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for retesting with the python.org installer. Since this is Homebrew specific, please open an issue with them, with the updated debug information. -- resolution: -> third party stage: -> resolved status: open -> closed

[issue43428] Sync importlib_metadata enhancements through 3.7.

2021-03-07 Thread Jason R. Coombs
New submission from Jason R. Coombs : importlib metadata has added a few important [changes](https://importlib-metadata.readthedocs.io/en/latest/history.html#v3-7-0) since the last sync in issue42382 (importlib_metadata 3.3): - Performance enhancements to distribution discovery. -

[issue42382] No easy way to get the distribution which provided a importlib.metadata.EntryPoint

2021-03-07 Thread Jason R. Coombs
Change by Jason R. Coombs : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42382] No easy way to get the distribution which provided a importlib.metadata.EntryPoint

2021-03-07 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43406] Possible race condition between signal catching and signal.signal

2021-03-07 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +23546 pull_request: https://github.com/python/cpython/pull/24755 ___ Python tracker ___

[issue43420] Optimize rational arithmetics

2021-03-07 Thread Aaron Meurer
Aaron Meurer added the comment: I'm surprised to hear that the "typical use-case" of Fraction is fractions converted from floats. Do you have evidence in the wild to support that? I would expect any application that uses fractions "generically" to run into the same sorts of problems SymPy

[issue43379] Pasting multiple lines in the REPL is broken since 3.9

2021-03-07 Thread Romain Vincent
Romain Vincent added the comment: The lack of dots was something I noticed. So from your questions (Ned Deily) I have been testing out several things and found a "wae"! But first, to answer your questions: 1. both LF and CRLF and it didn't change anything. 2. Running "import

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +23545 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24780 ___ Python tracker

[issue43216] Removal of @asyncio.coroutine in Python 3.10

2021-03-07 Thread Mariusz Felisiak
Change by Mariusz Felisiak : -- nosy: +felixxm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24800] exec docs should note that the no argument form in a local scope is really the two argument form

2021-03-07 Thread Eryk Sun
Eryk Sun added the comment: So there are a couple things to clarify here. When the documentation says "if the optional parts are omitted, the code is executed in the current scope", I think it should explicitly state that this is equivalent to calling exec(object, globals(), locals()). This

[issue29982] tempfile.TemporaryDirectory fails to delete itself

2021-03-07 Thread Guido van Rossum
Guido van Rossum added the comment: SGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43422] Revert _decimal C API changes

2021-03-07 Thread hai shi
hai shi added the comment: +1 from me. 3.10.0 final haven't been released, so no one will be affected. -- nosy: +shihai1991, vstinner ___ Python tracker ___

[issue22790] some class attributes missing from dir(Class)

2021-03-07 Thread Eryk Sun
Eryk Sun added the comment: >> Why are __flags__, __basicsize__, __itemsize__, >>__dictoffset__, and __weakrefoffset__ interesting? > > I haven't said they are, but on the other hand I don't see > why consistency is a bad thing. IMO, they're not interesting because they're not documented

[issue43425] test_peg_generator.test_c_parser emits DeprecationWarning due to distutils

2021-03-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the clarification. As per issue41282 I thought disutils will be removed. The accepted PEP 632 states this scenario so I guess silencing the warning is good enough. > The final dependency on distutils is CPython itself, which uses it to

[issue43425] test_peg_generator.test_c_parser emits DeprecationWarning due to distutils

2021-03-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: We just need to suppress the warning unless I am missing somey. Distutils will still be used internally by CPython. -- ___ Python tracker

[issue43427] Possible error on the descriptor howto guide

2021-03-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8304] time.strftime() and Unicode characters on Windows

2021-03-07 Thread Eryk Sun
Eryk Sun added the comment: Update since msg255133: Python 3.8+ now calls setlocale(LC_CTYPE, "") at startup in Windows, as 3.x has always done in POSIX. So decoding the output of C strftime("%Z") with PyUnicode_DecodeLocaleAndSize() 'works' again, since both default to the process code

[issue43427] Possible error on the descriptor howto guide

2021-03-07 Thread Marcos M
Marcos M added the comment: Let me provide a link to ease finding this piece of documentation https://docs.python.org/3/howto/descriptor.html#static-methods -- ___ Python tracker

[issue43427] Possible error on the descriptor howto guide

2021-03-07 Thread Marcos M
New submission from Marcos M : > To recap, functions have a __get__() method so that they can be converted to > a method when accessed as attributes. The non-data descriptor transforms an > obj.f(*args) call into f(obj, *args). Calling cls.f(*args) becomes f(*args). I THINK it should say

[issue43216] Removal of @asyncio.coroutine in Python 3.10

2021-03-07 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43319] A possible misleading expression in the Virtual Environment Tutorial

2021-03-07 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10653] test_time test_strptime fails on windows

2021-03-07 Thread Eryk Sun
Eryk Sun added the comment: > decoding the output of strftime("%Z") with PyUnicode_DecodeLocaleAndSize() > works again since both agree on using the process active code page At least it works as much as it ever did. It depends on the process active code page being compatible with the

[issue10653] test_time test_strptime fails on windows

2021-03-07 Thread Eryk Sun
Eryk Sun added the comment: Update since msg243660: Python 3.8+ now calls setlocale(LC_CTYPE, "") at startup in Windows, as it has always done in POSIX, so decoding the output of strftime("%Z") with PyUnicode_DecodeLocaleAndSize() works again since both agree on using the process active

[issue43420] Optimize rational arithmetics

2021-03-07 Thread Mark Dickinson
Mark Dickinson added the comment: > There is one exception I've found: stdlib's statistics module uses > Fraction's in the _sum() helper, exactly in a paradigm "sum a lot > of values". That's an interesting example: it does indeed satisfy the "sum of a lot of values" part, but not the

[issue43420] Optimize rational arithmetics

2021-03-07 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: > I'd prefer to keep the code simplicity It's not going to be complicated so much and algorithms are well known, but I see your point. > and the speed for small inputs here Speed loss is not so big, 10-20%. > Python's needs aren't the same as SymPy's

[issue43060] Convert _decimal C API from pointer array to struct

2021-03-07 Thread Mark Dickinson
Mark Dickinson added the comment: Just a note that #43422 would make this moot. -- nosy: +mark.dickinson ___ Python tracker ___

[issue41324] Add a minimal decimal capsule API

2021-03-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: @mattip, see issue43422 -- assignee: skrah -> ___ Python tracker ___ ___ Python-bugs-list

[issue43420] Optimize rational arithmetics

2021-03-07 Thread Mark Dickinson
Mark Dickinson added the comment: Personally, I'd prefer to keep the code simplicity, and the speed for small inputs here. Python's needs aren't the same as SymPy's needs or SAGE's needs, and not all of the fractions.Fraction use-cases involve summing lots of values with incompatible

[issue43422] Revert _decimal C API changes

2021-03-07 Thread Mark Dickinson
Mark Dickinson added the comment: +1 for reverting these before 3.10. See also @mattip's comments on #41324, and #43060. -- ___ Python tracker ___

[issue41369] Update to libmpdec-2.5.1

2021-03-07 Thread Mark Dickinson
Mark Dickinson added the comment: Sounds fine to me. If I'm understanding right, what we have in master right now is somewhere between libmpdec 2.5.0 and libmpdec 2.5.1; is that right? If so, it definitely makes sense to update to 2.5.1. -- ___

[issue43372] ctypes: test_frozentable fails when make regen-frozen

2021-03-07 Thread Miro Hrončok
Miro Hrončok added the comment: Thanks for the fixer! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1814] Victor Stinner's GMP patch for longs

2021-03-07 Thread Sergey B Kirpichev
Change by Sergey B Kirpichev : -- nosy: +Sergey.Kirpichev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21922] PyLong: use GMP

2021-03-07 Thread Sergey B Kirpichev
Change by Sergey B Kirpichev : -- nosy: +Sergey.Kirpichev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43319] A possible misleading expression in the Virtual Environment Tutorial

2021-03-07 Thread miss-islington
miss-islington added the comment: New changeset 8d00462850b32da4649c3403692ed5515e6a96d1 by cmhzc in branch 'master': bpo-43319: Fixed the tutorial on venv about standard library (GH-24740) https://github.com/python/cpython/commit/8d00462850b32da4649c3403692ed5515e6a96d1 -- nosy: