cpython
cpython copied to clipboard
The Python programming language
The docs for `Py_mod_gil` said "See `PYTHON_GIL` and `-X gil ` for more detail," but neither of those gave any detail about loading extensions in a free-threaded build. - Replace...
Issue: https://github.com/python/cpython/issues/121313 * Issue: gh-121313
Complete fix for Issue #90437 with cherry-picked commits from @riqts and @merwok This commit builds upon the previous work done by @riqts to address Issue #90437. It includes cherry-picked commits...
This flag was added as an escape hatch in bpo-47245 and backported to Python 3.10. The flag broke at some point between its addition and now. As there is currently...
* Issue: gh-121111
Add `__fspath__()` methods to `tempfile.NamedTemporaryFile` and `TemporaryDirectory`. * Issue: gh-87646 ---- 📚 Documentation preview 📚: https://cpython-previews--114765.org.readthedocs.build/
I felt this is a trivial change and did not need an issue. This is an issue as some people have github repositories with spaces in name and has cpython...
# Performance Improvement Using `enumerate(...)` in `for` loops are slow and there are at least +250 `enumerate`'s in CPython Let's take for example this `for` loop with `enumerate`: https://github.com/python/cpython/blob/5f660e8e2ca3acfb89ccbdd990f072149b6baa6a/Lib/genericpath.py#L116-L118 If...
# Bug report ### Bug description: Discussion: https://discuss.python.org/t/subprocess-use-vfork-escape-hatch-broken-fix-or-remove/56915 This flag was added as an escape hatch in gh-91401 and backported to Python 3.10. The flag broke at some point between...
# Bug report ### Bug description: The `decimal.Decimal` class allows for underscores around numbers. ```pycon >>> Decimal("_1_") # 1 with wings Decimal('1') >>> Decimal("____0____.____0____") # Totoro's 0 Decimal('0.0') ``` This...