cpython
cpython copied to clipboard
The Python programming language
(cherry picked from commit f6f4022a357f70f1c40945403065e81b6c2e4854) Co-authored-by: Jan MusΓlek * Issue: gh-64308 ---- π Documentation preview π: https://cpython-previews--121743.org.readthedocs.build/
This is a follow-up of GH-86438 and GH-23172. The `warnings` docs should include more examples to show how to match different types of warnings using both the provided functions and...
BPO | [25567](https://bugs.python.org/issue25567) --- | :--- Nosy | @bitdancer, @vadmium, @The-Compiler, @willingc, @csabella, @tirkarthi, @aldwinaldwin, @HassanAbouelela, @hrik2001 PRs | python/cpython#10871python/cpython#22657 Files | [shlex_quote_bytes_support.patch](https://bugs.python.org/file40992/shlex_quote_bytes_support.patch "Uploaded as text/plain at 2015-11-10.03:27:53 by Nan...
I tested this by running the repros in the issue on a TSAN build for 2-3 minutes each. No races reported. * Issue: gh-121546
# Bug report The [ContextVar](https://docs.python.org/3/library/contextvars.html) implementation is not thread-safe in the free-threaded build: In particular, the caching is not thread-safe, although there may be other thread-safety issues as well: https://github.com/python/cpython/blob/9c08f40a613d9aee78de4ce4ec3e125d1496d148/Python/context.c#L206-L212...
Add _Py_IsImmortalLoose() function for assertions. * Issue: gh-121528
gh-112301: Added `-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3` to default compiler options for all builds This option adds runtime protections for glibc to abort execution when unsafe behavior is encountered.[ Here are the GNU...
In PR #112514 `EnumDict` was made public but was not documented. This patch adds the documentation. Resolves #112328 * Issue: gh-112328 ---- π Documentation preview π: https://cpython-previews--121720.org.readthedocs.build/
# Bug report ### Bug description: sys.stdin.read() throws a TypeError if stdin has been set to be non-blocking. The code below should just exit without issue. It throws a TypeError...
* Issue: gh-121645 ---- π Documentation preview π: https://cpython-previews--121646.org.readthedocs.build/