cpython
cpython copied to clipboard
The Python programming language
CC @gpshead who wrote https://github.com/python/cpython/commit/d597fdc5fd0e8aa73a783fea27287db669950c15 * Issue: gh-118827 ---- 📚 Documentation preview 📚: https://cpython-previews--118828.org.readthedocs.build/
I honestly forgot this slipped into 3.13, but I think it's worth highlighting more, as it is a PEP-sized change that makes the type system significantly more powerful. @Yhg1s I...
# Bug report ### Bug description: This has happened at least twice, both yesterday: * main: https://buildbot.python.org/all/#builders/1046/builds/5179 * 3.13: https://buildbot.python.org/all/#builders/1502/builds/12 The commits look unrelated. For both tests modules the run...
# Bug report ### Bug description: Hi dear core developers, I was playing with the newest REPL v3.130b1 on my M2 MacBook Pro with macOS 14.3. I built the python...
# Bug report `PyEval_GetLocals()` is documented as returning a [borrowed reference](https://docs.python.org/3/c-api/reflection.html#c.PyEval_GetLocals). It now returns a new reference, which causes callers to leak the local variables: https://github.com/python/cpython/blob/35c436186b849f8f2f9fb866c59015c9d034d448/Python/ceval.c#L2478-L2479 cc @gaogaotiantian @markshannon
BPO | [46326](https://bugs.python.org/issue46326) --- | :--- Nosy | @vsajip, @eryksun, @alimpfard *Note: these values reflect the state of the issue at the time it was migrated and might not reflect...
Concerning the possible values of the `nargs` parameter of `add_argument()`. The following values are already described in the documentation, so only a mention of the constants is needed: - `OPTIONAL`...
# Feature or enhancement We need to make the TSAN tests pass with the GIL disabled before we can disable the GIL by default in free-threaded builds. This should proceed...
`DECREF_INPUTS_AND_REUSE_FLOAT` and `_Py_DECREF_SPECIALIZED` are problematic in that they don't follow standard CPython reference semantics that we plan for the deferred refcounting. The easiest solution would be to get rid of...
# Feature or enhancement Follow-up of...: - #101693: > Based on the discussion in the above linked Discourse topic, I propose to now issue a deprecation warning if sequences are...