[issue46066] Remove keyword args syntax for TypedDict definition

2022-02-03 Thread 97littleleaf11
Change by 97littleleaf11 <97littlelea...@gmail.com>: -- keywords: +patch pull_requests: +29305 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31126 ___ Python tracker

[issue46066] Remove keyword args syntax for TypedDict definition

2022-02-03 Thread 97littleleaf11
Change by 97littleleaf11 <97littlelea...@gmail.com>: -- title: TypedDict alternative definition syntax with keyword args is confusing -> Remove keyword args syntax for TypedDict definition ___ Python tracker

[issue46200] Discourage logging f-strings due to security considerations

2022-02-03 Thread Arie Bovenberg
Arie Bovenberg added the comment: @rhettinger @tinchester I definitely see now that f-strings should have a place in logging. But do you agree that f-strings don't mix 100% safely with the current logger API? What are your thoughts on a safer set of logger functions (see my comments above,

[issue20039] Missing documentation for argparse.ArgumentTypeError

2022-02-03 Thread Yassir Karroum
Change by Yassir Karroum : -- keywords: +patch nosy: +ukarroum nosy_count: 6.0 -> 7.0 pull_requests: +29304 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31125 ___ Python tracker

[issue46631] Implement a "strict" mode for getpass.getuser()

2022-02-03 Thread Eryk Sun
New submission from Eryk Sun : getpass.getuser() checks the environment variables LOGNAME (login name), USER, LNAME, and USERNAME, in that order. In Windows, LOGNAME, USER, and LNAME have no conventional usage. I think there should be a strict mode that restricts getuser() to check only

[issue46627] Regex hangs indefinitely

2022-02-03 Thread Tim Peters
Tim Peters added the comment: Introducing some kind of optional timeout is too involved to just drop in without significant discussion and design effort first. If you want to pursue this, please bring it up on the python-ideas mailing list. My first take: it wouldn't really help, because

[issue46588] fix typo in test_calltip.py

2022-02-03 Thread miss-islington
miss-islington added the comment: New changeset 9ce0b00fb1172e743de985eda28e3335aa95014a by Miss Islington (bot) in branch '3.10': bpo-46588: fix typo in test_calltip.py (GH-31119) https://github.com/python/cpython/commit/9ce0b00fb1172e743de985eda28e3335aa95014a --

[issue46588] fix typo in test_calltip.py

2022-02-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +29303 pull_request: https://github.com/python/cpython/pull/31122 ___ Python tracker ___

[issue46615] Use-after-free by mutating set during set operations

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

[issue46541] Replace _Py_IDENTIFIER() with statically initialized objects.

2022-02-03 Thread Eric Snow
Eric Snow added the comment: (thanks Victor: https://mail.python.org/archives/list/python-...@python.org/message/7RMLIJHUWVBZFV747TFEHOE6LNBVQSMM/) 3rd party use of _Py_IDENTIFIER(): * blender +

[issue46615] Use-after-free by mutating set during set operations

2022-02-03 Thread Tim Peters
Tim Peters added the comment: Raised the priority back to normal. I agree with Dennis's observation that PyDict_Next is safe, provided it's used as intended: it returns borrowed references, but to things that absolutely are legitimate at the time. In the presence of mutations, *what* it

[issue46588] fix typo in test_calltip.py

2022-02-03 Thread miss-islington
miss-islington added the comment: New changeset 663370aea5dcf9074455b45283e980c7bc353674 by Miss Islington (bot) in branch '3.9': bpo-46588: fix typo in test_calltip.py (GH-31119) https://github.com/python/cpython/commit/663370aea5dcf9074455b45283e980c7bc353674 --

[issue46588] fix typo in test_calltip.py

2022-02-03 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +29302 pull_request: https://github.com/python/cpython/pull/31121 ___ Python tracker

[issue46588] fix typo in test_calltip.py

2022-02-03 Thread Terry J. Reedy
New submission from Terry J. Reedy : New changeset 222865daabfa7a8b12ca9a5e9c23b9ce217448f1 by Caio Agiani in branch 'main': bpo-46588: fix typo in test_calltip.py (GH-31119) https://github.com/python/cpython/commit/222865daabfa7a8b12ca9a5e9c23b9ce217448f1 -- nosy: +terry.reedy

[issue46615] Use-after-free by mutating set during set operations

2022-02-03 Thread Dennis Sweeney
Dennis Sweeney added the comment: It looks like usages of the PyDict_Next API assume the resulting references are borrowed and so INCREF them. Usages of set_next do not, but should. It should hopefully be a straightforward fix of adding INCREF/DECREFs. --

[issue46615] Use-after-free by mutating set during set operations

2022-02-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Marking as low priority given that ehe next loop code has been deployed without incident for two decades (a little less for sets and a little more for dicts). -- priority: normal -> low ___ Python tracker

[issue46588] fix typo in test_calltip.py

2022-02-03 Thread Caio Agiani
Change by Caio Agiani : -- pull_requests: +29300 pull_request: https://github.com/python/cpython/pull/31119 ___ Python tracker ___

[issue33178] Add support for BigEndianUnion and LittleEndianUnion in ctypes

2022-02-03 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith versions: +Python 3.11 -Python 2.7, Python 3.6 ___ Python tracker ___

[issue44949] test_readline: test_auto_history_disabled() fails randomly on aarch64 RHEL8 Refleaks 3.9, 3.10 and 3.x

2022-02-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +29299 pull_request: https://github.com/python/cpython/pull/31118 ___ Python tracker ___

[issue14916] PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout

2022-02-03 Thread miss-islington
miss-islington added the comment: New changeset 91e888904478271c27c52c773863b41f5a8f7f30 by Miss Islington (bot) in branch '3.10': bpo-14916: use specified tokenizer fd for file input (GH-31006) https://github.com/python/cpython/commit/91e888904478271c27c52c773863b41f5a8f7f30 --

[issue45380] help() appears confused about the module of typing.Annotated

2022-02-03 Thread Guido van Rossum
Guido van Rossum added the comment: It looks like __metadata__ was *meant* to be a public attribute, but somehow overseen when the PEP and docs were written. :-( I don't know anything about this class, really. -- ___ Python tracker

[issue44796] Add __parameters__ and __getitem__ in TypeVar and ParamSpec

2022-02-03 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: I'd also be wary about making changes that introduce additional runtime checks. As we've seen with the PEP 612 and 646 implementations, those can impede future iteration on typing. -- ___ Python tracker

[issue44796] Add __parameters__ and __getitem__ in TypeVar and ParamSpec

2022-02-03 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, sobolevn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44796] Add __parameters__ and __getitem__ in TypeVar and ParamSpec

2022-02-03 Thread Guido van Rossum
Guido van Rossum added the comment: I don't think that changing list[None] to list[NoneType] in the output is an improvement. I do appreciate the reduction in C code though! -- ___ Python tracker

[issue46433] _PyType_GetModuleByDef optimization is incorrect

2022-02-03 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: It looks like this can be closed. Petr? -- status: open -> pending ___ Python tracker ___ ___

[issue46630] IDLE: Set query focus to entry box on Windows

2022-02-03 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker

[issue46566] Support -3.11-arm64 in py.exe launcher

2022-02-03 Thread Tommy Vercetti
Tommy Vercetti added the comment: PEP 514 looks good to me -- nosy: +TommyVCT ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46630] IDLE: Set query focus to entry box on Windows

2022-02-03 Thread miss-islington
miss-islington added the comment: New changeset 4f76b3667d856a13107c65d44d802d0e73c3f104 by Miss Islington (bot) in branch '3.10': bpo-46630: Fix initial focus of IDLE query dialogs (GH-31112) https://github.com/python/cpython/commit/4f76b3667d856a13107c65d44d802d0e73c3f104 --

[issue46630] IDLE: Set query focus to entry box on Windows

2022-02-03 Thread miss-islington
miss-islington added the comment: New changeset dc315f30f86a1dc7c4607398b379d7c0b55c7549 by Miss Islington (bot) in branch '3.9': bpo-46630: Fix initial focus of IDLE query dialogs (GH-31112) https://github.com/python/cpython/commit/dc315f30f86a1dc7c4607398b379d7c0b55c7549 --

[issue33125] Windows 10 ARM64 platform support

2022-02-03 Thread Tommy Vercetti
Tommy Vercetti added the comment: Thank you Steve! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42926] Split compiler into code-gen, optimizer and assembler.

2022-02-03 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +29298 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31116 ___ Python tracker ___

[issue46630] IDLE: Set query focus to entry box on Windows

2022-02-03 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +29296 pull_request: https://github.com/python/cpython/pull/31114 ___ Python tracker

[issue46630] IDLE: Set query focus to entry box on Windows

2022-02-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +29297 pull_request: https://github.com/python/cpython/pull/31115 ___ Python tracker ___

[issue46630] IDLE: Set query focus to entry box on Windows

2022-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset d1df81a730499cc6286d02afa6028a1e9c22bbbf by Terry Jan Reedy in branch 'main': bpo-46630: Fix initial focus of IDLE query dialogs (GH-31112) https://github.com/python/cpython/commit/d1df81a730499cc6286d02afa6028a1e9c22bbbf --

[issue33125] Windows 10 ARM64 platform support

2022-02-03 Thread Steve Dower
Steve Dower added the comment: Closing this issue, as we have others to track individual tasks. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41962] Make threading._register_atexit public?

2022-02-03 Thread Eric Snow
Eric Snow added the comment: > This means that ThreadPoolExecutor's atexit runs before mine, > and since I never get a chance to cancel my tasks, it deadlocks. (assuming we want to support long-running tasks here) With all the above in mind, there are a few things that may help. The first

[issue46200] Discourage logging f-strings due to security considerations

2022-02-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: In a favor of deferred substitution, the cookbook should have a recipe where substituted messages are logged to a file and the unsubstituted message stored in SQLite3 database with the parameters stored as JSON.This gives both human readable output

[issue46200] Discourage logging f-strings due to security considerations

2022-02-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Eric is absolutely right, due to function calls being > somewhat slow in Python the performance argument in > practice falls in favor of f-strings. Also f-strings can evaluate expressions in the template which is also a big win: f('Pending

[issue41962] Make threading._register_atexit public?

2022-02-03 Thread Eric Snow
Eric Snow added the comment: FWIW, here's a brain dump about ThreadPoolExecutor and its atexit handler after having looked at the code. First, the relationship between the objects involved: * work item -> Future * work item -> task (e.g. function) * queue -> [work item] * worker ->

[issue41962] Make threading._register_atexit public?

2022-02-03 Thread Eric Snow
Eric Snow added the comment: > I'm running some long-running (possibly infinite) tasks in the thread pool, > and I cancel them in an `atexit` callback Alternately, perhaps ThreadPoolExecutor isn't the right fit here, as implied by the route you ended up going. It seems like it's not

[issue41962] Make threading._register_atexit public?

2022-02-03 Thread Eric Snow
Eric Snow added the comment: > I'm running some long-running (possibly infinite) tasks in the thread pool, > and I cancel them in an `atexit` callback To be clear, by "cancel" you are not talking about Future.cancel(). Rather, your handler causes all running tasks to finish (by sending a

[issue46573] Python modules such as pyglet or pygame crash Python when tkinter message boxes are opened on MacOS.

2022-02-03 Thread Ned Deily
Ned Deily added the comment: Thanks, Marc and Ronald, for the analysis. And thanks for bringing up the issue, Remy. Perhaps you can verify that Ronald's suggestion of importing and launching Tk before calling pyglet or pygame works for you and, if so, follow up with those projects to, if

[issue46630] IDLE: Set query focus to entry box on Windows

2022-02-03 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +29295 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31112 ___ Python tracker ___

[issue45975] Simplify some while-loops with walrus operator

2022-02-03 Thread miss-islington
miss-islington added the comment: New changeset cf7cb1a2bf40516dc571d1d90c12b632dcd9b8c8 by Miss Islington (bot) in branch '3.9': bpo-45975: IDLE - Remove extraneous parens (GH-31107) https://github.com/python/cpython/commit/cf7cb1a2bf40516dc571d1d90c12b632dcd9b8c8 --

[issue46629] Cannot sideload MSIX package on Windows

2022-02-03 Thread Steve Dower
Steve Dower added the comment: Posted the PR for openness, but it's not ready to merge yet. The file that's been updated there (which unfortunately is not very Unix friendly) now has the SHA256 hash of our signing certificate, and I've emailed the file to storeops at Microsoft to request

[issue45975] Simplify some while-loops with walrus operator

2022-02-03 Thread miss-islington
miss-islington added the comment: New changeset 63523e7b2a631f28134b25a8063d50e08c741db6 by Miss Islington (bot) in branch '3.10': bpo-45975: IDLE - Remove extraneous parens (GH-31107) https://github.com/python/cpython/commit/63523e7b2a631f28134b25a8063d50e08c741db6 --

[issue46629] Cannot sideload MSIX package on Windows

2022-02-03 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +29294 stage: -> patch review pull_request: https://github.com/python/cpython/pull/3 ___ Python tracker ___

[issue46630] IDLE: Set query focus to entry box on Windows

2022-02-03 Thread Terry J. Reedy
New submission from Terry J. Reedy : On Mac, and I presume *nix in general, query boxes open with the focus on the first entry box, with the cursor displayed. One can immediate enter a line number, dotted module name, or whatever. On Windows, since 3.9, one must hit Tab or click on the

[issue44796] Add __parameters__ and __getitem__ in TypeVar and ParamSpec

2022-02-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It does not have a use case of T[int] in mind. It is an implementation detail which simplifies the code, makes runtime checks more strict and makes types.GenericAlias more similar to typing._GenericAlias. For example, currently: >>> A = List[T] >>> B =

[issue23041] csv needs more quoting rules

2022-02-03 Thread Miha Šetina
Miha Šetina added the comment: Is this still on track for python 3.11? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46629] Cannot sideload MSIX package on Windows

2022-02-03 Thread Steve Dower
Change by Steve Dower : -- components: +Windows nosy: +paul.moore, tim.golden, zach.ware ___ Python tracker ___ ___

[issue46628] Can't install YARL

2022-02-03 Thread Paul Koning
Paul Koning added the comment: Thanks, I'll pass the word to the yarl and aiohttp team (both have this issue). -- ___ Python tracker ___

[issue46629] Cannot sideload MSIX package on Windows

2022-02-03 Thread Steve Dower
New submission from Steve Dower : We need to update PC/classicAppCompat.can.xml for our new certificate and email Microsoft to get it signed again. -- assignee: steve.dower messages: 412461 nosy: steve.dower priority: normal severity: normal status: open title: Cannot sideload MSIX

[issue46628] Can't install YARL

2022-02-03 Thread Eric V. Smith
Eric V. Smith added the comment: Ah. longintrepr.h is an internal Python file, not meant for external consumption. This file moved in Python 3.11. So this is still a yarl issue: they'll need to adjust how they read that file. But my recommendation is that they find another way to do what

[issue45975] Simplify some while-loops with walrus operator

2022-02-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +29293 pull_request: https://github.com/python/cpython/pull/31110 ___ Python tracker ___

[issue45975] Simplify some while-loops with walrus operator

2022-02-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +29292 pull_request: https://github.com/python/cpython/pull/31109 ___ Python tracker ___

[issue45975] Simplify some while-loops with walrus operator

2022-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 916d0d822c79933f4c420f7a36f16f3eb788646b by Terry Jan Reedy in branch 'main': bpo-45975: IDLE - Remove extraneous parens (GH-31107) https://github.com/python/cpython/commit/916d0d822c79933f4c420f7a36f16f3eb788646b --

[issue46627] Regex hangs indefinitely

2022-02-03 Thread J.B. Langston
J.B. Langston added the comment: Sorry, on rereading your message I guess you were referring to the extra +, not the [^]]. The extra + after the ) was not intentional, and after removing it, the regex no longer hangs. I still think it would be nice to have a timeout setting on the regex so

[issue46628] Can't install YARL

2022-02-03 Thread Paul Koning
Paul Koning added the comment: The only dependency mentioned by the yarl documentation is multidict and installing that makes no difference. I see I can tell yarl to build a pure-python version to avoid compiling stuff. If I do that it installs. But what I actually wanted to do is

[issue46627] Regex hangs indefinitely

2022-02-03 Thread J.B. Langston
J.B. Langston added the comment: Yes, it is supposed to match everything up to the closing ] in this substring: [BigTableReader(path='/data/cassandra/data/log/logEntry_202202-e68971800b2711ecaf770d5fa3f5ae87/md-112-big-Data.db')] Quoting from the re docs: To match a literal ']' inside a

[issue46628] Can't install YARL

2022-02-03 Thread Eric V. Smith
Eric V. Smith added the comment: It looks like you're missing dependencies required to compile yarl. Since this isn't a bug with Python, I'm going to close this. I suggest you ask the yarl community for help. Their home page is https://github.com/aio-libs/yarl/ Good luck! -- nosy:

[issue46524] test_peg_generator takes 8 minutes on Windows

2022-02-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks to Kumar for contributing Windows compiler flags side of this (the point of this issue). -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker

[issue46628] Can't install YARL

2022-02-03 Thread Paul Koning
New submission from Paul Koning : Trying to install "aiohttp" with pip I get a compile error installing "yarl". I get the same error when I install just that module. But it installs fine on 3.10. This is on an Apple M1 (ARM64) machine. -- components: macOS files: yarl.log

[issue46627] Regex hangs indefinitely

2022-02-03 Thread Matthew Barnett
Matthew Barnett added the comment: That pattern has: (?P[^]]+)+ Is that intentional? It looks wrong to me. -- ___ Python tracker ___

[issue46072] Unify handling of stats in the CPython VM

2022-02-03 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +29291 pull_request: https://github.com/python/cpython/pull/31108 ___ Python tracker ___

[issue45975] Simplify some while-loops with walrus operator

2022-02-03 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +29290 pull_request: https://github.com/python/cpython/pull/31107 ___ Python tracker ___

[issue46626] expose IP_BIND_ADDRESS_NO_PORT linux socket option

2022-02-03 Thread Benjamin Peterson
New submission from Benjamin Peterson : New changeset 1aa6be06c4cb7f04a340adb1c7b16b89803ef254 by Benjamin Peterson in branch 'main': closes bpo-46626: Expose IP_BIND_ADDRESS_NO_PORT socket option. (GH-31106) https://github.com/python/cpython/commit/1aa6be06c4cb7f04a340adb1c7b16b89803ef254

[issue46627] Regex hangs indefinitely

2022-02-03 Thread J.B. Langston
New submission from J.B. Langston : The following code will cause Python's regex engine to hang apparently indefinitely: import re message = "Flushed to [BigTableReader(path='/data/cassandra/data/log/logEntry_202202-e68971800b2711ecaf770d5fa3f5ae87/md-112-big-Data.db')] (1 sstables,

[issue46626] expose IP_BIND_ADDRESS_NO_PORT linux socket option

2022-02-03 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +29289 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31106 ___ Python tracker

[issue46626] expose IP_BIND_ADDRESS_NO_PORT linux socket option

2022-02-03 Thread Benjamin Peterson
Change by Benjamin Peterson : -- components: Library (Lib) nosy: benjamin.peterson priority: normal severity: normal status: open title: expose IP_BIND_ADDRESS_NO_PORT linux socket option type: enhancement versions: Python 3.11 ___ Python tracker

[issue46072] Unify handling of stats in the CPython VM

2022-02-03 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +29288 pull_request: https://github.com/python/cpython/pull/31105 ___ Python tracker ___

[issue34486] "RuntimeError: release unlocked lock" when starting a thread

2022-02-03 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46072] Unify handling of stats in the CPython VM

2022-02-03 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +29287 pull_request: https://github.com/python/cpython/pull/31104 ___ Python tracker ___

[issue46621] Should map(function, iterable, ...) replace StopIteration with RuntimeError?

2022-02-03 Thread Vedran Čačić
Vedran Čačić added the comment: Just for the record, I consider PEP 479 one of (very rare) design bugs in Python, and would like it reversed some day. (So anything that helps this outcome, including -1 on this, is welcome.) It subverts the natural property of exceptions (that they bubble

[issue46615] Use-after-free by mutating set during set operations

2022-02-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Presumably _PyDict_Next is also suspect. Even the advertised "safe" calls to PyDict_SetItem() for existing keys would be a trigger. Calling clear() in either __eq__ or __hash__ would suffice. If the next loops are the culprint, the new challenge is

[issue45773] Compiler hangs during jump elimination

2022-02-03 Thread Brandt Bucher
Change by Brandt Bucher : -- priority: release blocker -> resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46285] protocol_version in http.server.test can be ignored

2022-02-03 Thread Éric Araujo
Change by Éric Araujo : -- dependencies: +Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler versions: -Python 3.10, Python 3.9 ___ Python tracker

[issue45773] Compiler hangs during jump elimination

2022-02-03 Thread miss-islington
miss-islington added the comment: New changeset ff6948b1286c854ee77dfc0b23b9d828b36873e4 by Miss Islington (bot) in branch '3.10': bpo-45773: Remove invalid peephole optimizations (GH-31066) https://github.com/python/cpython/commit/ff6948b1286c854ee77dfc0b23b9d828b36873e4 --

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-02-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +29286 pull_request: https://github.com/python/cpython/pull/31103 ___ Python tracker ___

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-02-03 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +29285 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31102 ___ Python tracker ___

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-02-03 Thread miss-islington
miss-islington added the comment: New changeset 2d080347d74078a55c47715d232d1ab8dc8cd603 by Géry Ogam in branch 'main': bpo-46436: Fix command-line option -d/--directory in module http.server (GH-30701) https://github.com/python/cpython/commit/2d080347d74078a55c47715d232d1ab8dc8cd603

[issue45773] Compiler hangs during jump elimination

2022-02-03 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +29284 pull_request: https://github.com/python/cpython/pull/31101 ___ Python tracker

[issue46569] final note on StrEnum documentation incorrectly refers to int.__format__ instead of str.__format__

2022-02-03 Thread Ethan Furman
Change by Ethan Furman : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46569] final note on StrEnum documentation incorrectly refers to int.__format__ instead of str.__format__

2022-02-03 Thread Ethan Furman
Ethan Furman added the comment: New changeset 734b1f119be6f0dcd6845c78a9e0a71d88a90b59 by Nikita Sobolev in branch 'main': bpo-46569: [Enum] fix typo in `StrEnum` docs (GH-31007) https://github.com/python/cpython/commit/734b1f119be6f0dcd6845c78a9e0a71d88a90b59 --

[issue46615] Use-after-free by mutating set during set operations

2022-02-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: The likely culprit is the set_next() loop. Perhaps it is never safe to use set_next() because any lookup can callback to __eq__ which can mutate the set. Since set_isdisjoint() method isn't a mutating method, that is the easiest place to start

[issue46625] timeout option of socket.create_connection is not respected

2022-02-03 Thread Nicolas SURRIBAS
New submission from Nicolas SURRIBAS : When passing to socket.create_connection a timeout option above (approximately) 127 seconds, the timeout is not respected. Code to reproduce the issue : import socket from time import monotonic print(socket.getdefaulttimeout()) start = monotonic()

[issue46624] random.randrange removed support for non-integer types after just one release of deprecation

2022-02-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46624] random.randrange removed support for non-integer types after just one release of deprecation

2022-02-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 6baa98e538b2e26f16eaaf462f99496e98d2cfb1 by Miro Hrončok in branch 'main': bpo-46624: Defer to 3.12: "Remove deprecated support for non-integer values" (GH-31098)

[issue45885] Specialize COMPARE_OP

2022-02-03 Thread Mark Shannon
Mark Shannon added the comment: New changeset 674ab66ebdf06f187e193a3d7bde13b71ba0f9af by Dennis Sweeney in branch 'main': bpo-45885: Add more stats for COMPARE_OP in specialize.c (GH-31040) https://github.com/python/cpython/commit/674ab66ebdf06f187e193a3d7bde13b71ba0f9af --

[issue38119] resource tracker destroys shared memory segments when other processes should still have valid access

2022-02-03 Thread timka
timka added the comment: On the long run: Maybe this could solve some win32api problems? https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/ -- nosy: +timka ___ Python tracker

[issue44863] Allow TypedDict to inherit from Generics

2022-02-03 Thread Thomas Grainger
Thomas Grainger added the comment: there's a thread on typing-sig for this now: https://mail.python.org/archives/list/typing-...@python.org/thread/I7P3ER2NH7SENVMIXK74U6L4Z5JDLQGZ/#I7P3ER2NH7SENVMIXK74U6L4Z5JDLQGZ -- nosy: +graingert ___ Python

[issue41962] Make threading._register_atexit public?

2022-02-03 Thread Simon Arlott
Simon Arlott added the comment: Another way to do this is to call threading.main_thread().join() in another thread and do the shutdown cleanup when it returns. The main thread is stopped at shutdown just before the threading._threading_atexits are called. -- nosy: +sa

[issue46624] random.randrange removed support for non-integer types after just one release of deprecation

2022-02-03 Thread Miro Hrončok
Miro Hrončok added the comment: Proposed the revert at https://github.com/python/cpython/pull/31098 -- ___ Python tracker ___ ___

[issue46624] random.randrange removed support for non-integer types after just one release of deprecation

2022-02-03 Thread Miro Hrončok
Change by Miro Hrončok : -- keywords: +patch pull_requests: +29283 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31098 ___ Python tracker ___

[issue46624] random.randrange removed support for non-integer types after just one release of deprecation

2022-02-03 Thread Miro Hrončok
New submission from Miro Hrončok : In https://github.com/python/cpython/commit/5afa0a411243210a30526c7459a0ccff5cb88494 the support for non-integer types was removed from random.randrange(). This change is not backward-compatible and it breaks 3rd party code, for example: simplewrap:

[issue42222] Modernize integer test/conversion in randrange()

2022-02-03 Thread Petr Viktorin
Petr Viktorin added the comment: Since this is a user-visible change in 3.11, could you add a What's New entry? -- nosy: +petr.viktorin ___ Python tracker ___

[issue45380] help() appears confused about the module of typing.Annotated

2022-02-03 Thread jack1142
Change by jack1142 : -- nosy: +jack1142 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46524] test_peg_generator takes 8 minutes on Windows

2022-02-03 Thread STINNER Victor
STINNER Victor added the comment: Duration of the "Tests" step of https://github.com/python/cpython/pull/30890 * GHA win32: 14 min 11 sec (test_peg_generator: 8 min 16 sec) * GHA win64: 21 min 2 sec (test_peg_generator: 16 min 38 sec) * Azure win32: 9 min 34 sec (test_peg_generator: 5 min 30

[issue45773] Compiler hangs during jump elimination

2022-02-03 Thread Mark Shannon
Mark Shannon added the comment: New changeset e0433c1e70254d4d0357a9e14596929a04bdf769 by Brandt Bucher in branch 'main': bpo-45773: Remove invalid peephole optimizations (GH-31066) https://github.com/python/cpython/commit/e0433c1e70254d4d0357a9e14596929a04bdf769 --

[issue42238] Deprecate suspicious.py?

2022-02-03 Thread Julien Palard
Change by Julien Palard : -- pull_requests: +29282 pull_request: https://github.com/python/cpython/pull/31097 ___ Python tracker ___

  1   2   >