cpython
cpython copied to clipboard
The Python programming language
# Bug report ### Bug description: Hi, I'm working on a Python testing project, and our tool detected the following issue: ```python from token import ISNONTERMINAL, ISTERMINAL ISNONTERMINAL(0.5) ISTERMINAL(0.5) ```...
In optimized and `-Og` builds, arguments and local variables are frequently unavailable in gdb. This makes `py-bt` fail to print anything useful. Use the `PyThreadState*` pointers `_Py_tss_gilstate` and `Py_tss_tstate` to...
JIT coverage is still quite variable. For some benchmarks, e.g. richards it is close to 100%. For others, much lower: https://github.com/savannahostrowski/pyperf_bench/blob/main/profiling/jit.svg Note: A fair bit of the time attributed to...
This adds a specialization for CALL_FUNCTION_EX for Python and non-Python frames. It should be slightly faster on the interpreter, and much faster on the JIT. Previously the JIT could not...
BPO | [33007](https://bugs.python.org/issue33007) --- | :--- Nosy | @avassalotti, @serhiy-storchaka, @anntzer, @MojoVampire, @ZackerySpytz PRs | python/cpython#21480 *Note: these values reflect the state of the issue at the time it was...
(cherry picked from commit 6d05e55de0f9c0b07fb14b4d2b9cf9c8eee2042c) Co-authored-by: Bartosz Sławecki
# Description This PR fixes gh-142968 by adding explicit type checks to `token.ISTERMINAL` and `token.ISNONTERMINAL`. Previously, these functions accepted floats (e.g., `0.5`) without error, which was inconsistent with PyPy and...
* Issue: gh-143214 ---- 📚 Documentation preview 📚: https://cpython-previews--143216.org.readthedocs.build/
* Issue: gh-143379