cpython icon indicating copy to clipboard operation
cpython copied to clipboard

The Python programming language

Results 1387 cpython issues
Sort by recently updated
recently updated
newest added

## Before: ```python from functools import reduce from operator import sub >>> reduce(sub, [1, 1, 2, 3, 5, 8], 21) 1 >>> reduce(sub, [1, 1, 2, 3, 5, 8], initial=21)...

awaiting review

# Crash report ### What happened? In `Modules/_asynciomodule.c` the `_asyncio_Future_remove_done_callback_impl` function has a section where it retrieves an item from a list and then immediately assumes it's a tuple without...

topic-asyncio
extension-modules
type-crash
3.12
3.13
3.14

Resolve #125887 * Issue: gh-125887 ---- 📚 Documentation preview 📚: https://cpython-previews--125907.org.readthedocs.build/

docs
awaiting core review
skip news
needs backport to 3.13

Adds: * `RETURN_VALUE_FUNC` * `RETURN_VALUE_GEN` * `INSTRUMENTED_RETURN_VALUE_FUNC` * `INSTRUMENTED_RETURN_VALUE_GEN` * `LOAD_CONST_IMMORTAL` Removes: * `RETURN_VALUE` * `RETURN_CONST` * `INSTRUMENTED_RETURN_VALUE` * `INSTRUMENTED_RETURN_CONST` * Issue: gh-125837

awaiting changes
skip news

On Windows, `long` is a signed 32-bit integer so it can't represent `0xffff_ffff` without overflow. Windows exit codes are unsigned 32-bit integers, so if a child process exits with `-1`,...

awaiting core review
needs backport to 3.13

# Bug report ### Bug description: The [documentation](https://docs.python.org/3/library/bisect.html) for [bisect.bisect_right](https://docs.python.org/3/library/bisect.html#bisect.bisect_right) and [bisect.bisect_left]( https://docs.python.org/3/library/bisect.html#bisect.bisect_left) states in both cases that >The returned insertion point ip partitions the array a into two slices...

type-bug
stdlib
extension-modules
3.13
3.14

I would like to backport this to 3.12 and 3.13 as well. * Issue: gh-125783

tests
awaiting core review
skip news
topic-ctypes

This PR adds a guard against `SyntaxError.lineno` being `None` in `code.InteractiveInterpreter._showtraceback`, which should avoid `PyREPL` exiting the interpreter when a null byte is present in the input. Not sure both...

awaiting core review
needs backport to 3.13
topic-repl

The `STORE_ATTR_INSTANCE_VALUE` opcode doesn't support objects with non-NULL managed dictionaries, so don't specialize to that op in that case. * Issue: gh-125610

awaiting core review
skip news
needs backport to 3.13