cpython
cpython copied to clipboard
The Python programming language
This is a prototype implementation of PEP 667. All the examples given in PEP 667 passed. The code only serves as a prototype, the proxy object is not even tracked...
# Bug report I've constructed a sneaky way to break the `remove_globals()` optimization, by executing a code object in two different globals dicts. (Credit goes to @brandtbucher who [started](https://github.com/python/cpython/issues/117045#issuecomment-2008283808) the...
Currently we have the `_JUMP_TO_TOP` uop which jumps to the *second* uop in the tier 2 trace, as the first is reserved for `_START_EXECUTOR`. Since this is a bit of...
The tier 2 optimizer fails whenever it cannot optimize the entire trace, which results in a large number of repeated attempts to optimize the same code. While we should add...
I am now working on [PEP 738](https://peps.python.org/pep-0738/), which proposes adding Android as a Tier 3 supported platform for Python 3.13. I'll use this page to track all the issues related...
BPO | [32210](https://bugs.python.org/issue32210) --- | :--- Nosy | @vstinner, @xdegaye, @moreati Dependencies | bpo-26855: android: add platform.android_ver() *Note: these values reflect the state of the issue at the time it...
gh-118961: random.choices undefined behavior when some weights are not finite or negative
Adding new, but unsued, `_dec_str_to_int_inner()`, + discussion. * Issue: gh-118750
# Feature or enhancement ### Problem In current [doc of random module](https://docs.python.org/3.14/library/random.html), it is mentioned that > Weights are assumed to be non-negative and finite. But what will happen if...
# Feature or enhancement ### Proposal: I hope this issue will complete `_datetime` isolation. My concerns (and answers) * `Py_MOD_PER_INTERPRETER_GIL_SUPPORTED` should be applied in sync with `_zoninfo`? * **YES**: Possible....