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

# Feature or enhancement Add an decorator that copies the parameter specs from one function onto another: [Example implementation](https://stackoverflow.com/questions/71968447) ```python from collections.abc import Callable from typing import ParamSpec, TypeVar, cast,...

type-feature
stdlib
topic-typing

It is our general practice to make new optional parameters keyword-only, even if the existing parameters are all positional-or-keyword. Passing this parameter as positional would look confusing and could be...

awaiting merge

…e of a function (GH-121680) (cherry picked from commit 178e44de8f023be7a5dc400044ab61983b191f24) * Issue: gh-121657

awaiting review

…e of a function (GH-121680) (cherry picked from commit 178e44de8f023be7a5dc400044ab61983b191f24) * Issue: gh-121657

awaiting review

# Bug report ### Bug description: ```python % ./python.exe -c 'yield x' File "", line 1 SyntaxError: 'yield' outside function % ./python.exe -c 'yield from x' File "", line 1...

type-bug
interpreter-core
easy

BPO | [12932](https://bugs.python.org/issue12932) --- | :--- Nosy | @terryjreedy, @rbtcollins, @merwok, @regebro, @mitar, @cjerdonek Files | [issue12932.diff](https://bugs.python.org/file30589/issue12932.diff "Uploaded as text/plain at 2013-06-14.21:24:16 by planet36"): Add input parameter 'shallow' to dircmp....

type-feature
stdlib

This fixes [#121604](https://github.com/python/cpython/issues/121604). * 
 [importlib.abc.ResourceLoader](https://docs.python.org/3/library/importlib.html#importlib.abc.ResourceLoader) * 
 [importlib.abc.SourceLoader.path_mtime()](https://docs.python.org/3/library/importlib.html#importlib.abc.SourceLoader.path_mtime) * 
 [importlib.machinery.DEBUG_BYTECODE_SUFFIXES](https://docs.python.org/3/library/importlib.html#importlib.machinery.DEBUG_BYTECODE_SUFFIXES) * 
 [importlib.machinery.OPTIMIZED_BYTECODE_SUFFIXES](https://docs.python.org/3/library/importlib.html#importlib.machinery.OPTIMIZED_BYTECODE_SUFFIXES) * 
 [importlib.machinery.WindowsRegistryFinder](https://docs.python.org/3/library/importlib.html#importlib.machinery.WindowsRegistryFinder) * [importlib.machinery.SourcelessFileLoader](https://docs.python.org/3/library/importlib.html#importlib.machinery.SourcelessFileLoader.load_module) The others defined in the issue can be considered already done. Issue: https://github.com/python/cpython/issues/121604 * Issue:...

awaiting core review
topic-importlib

Follow up to https://github.com/python/cpython/pull/121622 There's a refleak which I traced down to a bug in the freelist clearing code, but I have no clue why it's causing it (see below)....

awaiting core review
skip news

Previously, both the reusable and calling workflows had a lot of unnecessary duplication in the windows job definitions. This patch simplifies that into a single parametrized job that is included...

* Issue: gh-121710 ---- 📚 Documentation preview 📚: https://cpython-previews--121726.org.readthedocs.build/

awaiting core review