cpython
cpython copied to clipboard
The Python programming language
Fix double-free bug mentioned at https://github.com/python/cpython/issues/99240, by moving memory clean up out of "exit" label. * Issue: gh-99240
As originally reported in #75729 and confirmed to still be reproducible on the latest Python 3.12, the various `os.spawn*` tests are broken on Windows if the current working directory contains...
In GH-94329 the `MAX_ALLOWED_STACK_SIZE` check in the compiler (added in 3.10.0) was reverted, because it was discovered that a large sequence unpacking could use more than the allowed stack size....
In 3.11 we asserted that we didn't use too much stack, but that failed https://github.com/python/cpython/issues/94329 If we can guarantee that no code object uses more than a certain number of...
This gets us one step closer to skipping the quickening step entirely for new code objects... with this change, quickening only involves inserting superinstructions and initializing warmup counters. We do...
BPO | [46541](https://bugs.python.org/issue46541) --- | :--- Nosy | @vstinner, @tiran, @ericsnowcurrently, @serhiy-storchaka, @corona10, @erlend-aasland, @kumaraditya303, @notarealdeveloper PRs | python/cpython#30928python/cpython#30941python/cpython#31261python/cpython#31344python/cpython#31346python/cpython#31351python/cpython#31358python/cpython#31363python/cpython#31364python/cpython#31372python/cpython#31375python/cpython#31376python/cpython#30310python/cpython#31468python/cpython#31475python/cpython#31599python/cpython#31608python/cpython#31609python/cpython#31683python/cpython#32063 *Note: these values reflect the state of the issue at the...
(cherry picked from commit b9dedfe61dce2997e3e6be318d8c50b0c19c9394) Co-authored-by: Kamil Turek * Issue: gh-92119
* Issue: gh-98233
This makes a couple related changes to inspect.signature's behaviour when parsing a signature from `__text_signature__`. First, `inspect.signature` is documented as only raising ValueError or TypeError. However, in some cases, we...
There was an unnecessary quadratic loop in idna decoding. This restores the behavior to linear. (cherry picked from commit d315722564927c7202dd6e111dc79eaf14240b0d) (cherry picked from commit a6f6c3a3d6f2b580f2d87885c9b8a9350ad7bf15) Co-authored-by: Miss Islington (bot) Co-authored-by:...