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

3.13 newly defines the following unprefixed functions/macros/types via `Python.h`. They should probably be hidden: - [x] `uop_get_target` in `Include/cpython/optimizer.h:67` - [x] `uop_get_exit_index` in `Include/cpython/optimizer.h:73` - [x] `uop_get_jump_target` in `Include/cpython/optimizer.h:79` -...

topic-C-API

This sets up intersphinx and replaces a few PEP links in typing.rst with intersphinx links to the PEPs. I'm going to ask in the Python Docs discord whether there are...

awaiting merge
skip news
DO-NOT-MERGE
needs backport to 3.12
needs backport to 3.13

Fixes an AttributeError that occurs when checking if ns.temp is an absolute path during building from source on Windows. * Issue: gh-118876

awaiting review

Nice issue number 😊 Inspired by https://github.com/python/cpython/pull/118897 * Issue: gh-118899

tests
awaiting core review
skip news

# Bug report ### Bug description: Top-level scope now contains globals of `_pyrepl.__main__`: ``` Python 3.14.0a0 (heads/main:a895756aec, May 10 2024, 16:56:55) [GCC 10.2.1 20210110] on linux Type "help", "copyright", "credits"...

type-bug
3.13
3.14
topic-repl

gh-87106 Closes #87106 If a function signature has a variadic keyword argument (like `**kwargs`), then providing a keyword with the same name as a positional-only argument will still succeed, and...

awaiting merge

As mentioned in the issue: >While `-X importtime` is incredibly useful for analyzing module import times, by design, it doesn't log anything if an imported module has already been loaded....

awaiting review

* Issue: gh-117873

awaiting core review
skip news

The tier 2 optimizer specification (optimizer_bytecodes.c) contains lots of boilerplate for handling contradictions and running out of space in the optimizer's data structures. These can be handled but setting flags...

# Documentation https://docs.python.org/3/library/unittest.mock.html#auto-speccing https://github.com/python/cpython/blob/c444362c6e0b6c01f49c3bee864100f52bd3b640/Doc/library/unittest.mock.rst#L2615 mock = Mock(name='Thing', return_value=None) mock(1, 2, 3) mock.assret_called_once_with(4, 5, 6) # Intentional typo! Your tests can pass silently and incorrectly because of the typo. ---------------------------- Expected...

docs