Python PEPs

157 Followers
0 Following
66 Posts
The newest Python Enhancement Proposals #Python #PEP #RSS
Homepagehttps://peps.python.org/
Generated byhugovk
Powered byfeedsin.space

PEP 829: Structured Startup Configuration via .site.toml Files

This PEP proposes a TOML-based configuration file format to replace the .pth file mechanism used by site.py during interpreter startup. The new format, using files named .site.toml, provides structured configuration for extending sys.path and executing package initialization code, replacing the current ad-hoc .pth format that conflates path configuration with arbitrary code execution.

#python

PEP 829 – Structured Startup Configuration via .site.toml Files | peps.python.org

This PEP proposes a TOML-based configuration file format to replace the .pth file mechanism used by site.py during interpreter startup. The new format, using files named <package>.site.toml, provides structured configuration for extending sys.path and ...

Python Enhancement Proposals (PEPs)

PEP 828: Supporting 'yield from' in asynchronous generators

This PEP introduces support for yield from in an asynchronous generator function.

#python

PEP 828 – Supporting ‘yield from’ in asynchronous generators | peps.python.org

This PEP introduces support for yield from in an asynchronous generator function.

Python Enhancement Proposals (PEPs)

PEP 827: Type Manipulation

We propose adding powerful type-level introspection and construction facilities to Python’s type system. This design is inspired largely by TypeScript’s conditional and mapped types, but is adapted to the distinct semantics and constraints of Python’s typing model.

#python

PEP 827 – Type Manipulation | peps.python.org

We propose adding powerful type-level introspection and construction facilities to Python’s type system. This design is inspired largely by TypeScript’s conditional and mapped types, but is adapted to the distinct semantics and constraints of Python’s t...

Python Enhancement Proposals (PEPs)

PEP 825: Wheel Variants: Package Format

This PEP proposes variant wheels, an extension to packaging:specifications/binary-distribution-format that permits building multiple variants of the same package while embedding additional compatibility data. The specific properties are stored inside the wheel, and expressed via a human-readable variant label in the filename, which is then mapped to the actual properties via a separately hosted JSON mapping. This aims to make {tool} install {package} capable of selecting the most appropriate variant of packages where additional compatibility dimensions such as GPU support need to be accounted for.

#python

PEP 825 – Wheel Variants: Package Format | peps.python.org

This PEP proposes variant wheels, an extension to packaging:specifications/binary-distribution-format that permits building multiple variants of the same package while embedding additional compatibility data. The specific properties are stored inside th...

Python Enhancement Proposals (PEPs)

PEP 826: Python 3.16 Release Schedule

This document describes the development and release schedule for Python 3.16.

#python

PEP 826 – Python 3.16 Release Schedule | peps.python.org

This document describes the development and release schedule for Python 3.16.

Python Enhancement Proposals (PEPs)

PEP 813: The Pretty Print Protocol

This PEP describes the “pretty print protocol”, a collection of changes proposed to make pretty printing more customizable and convenient.

#python

PEP 813 – The Pretty Print Protocol | peps.python.org

This PEP describes the “pretty print protocol”, a collection of changes proposed to make pretty printing more customizable and convenient.

Python Enhancement Proposals (PEPs)

PEP 818: Adding the Core of the Pyodide Foreign Function Interface to Python

Pyodide is a distribution of Python for JavaScript runtimes, including browsers. Browsers are a universal computing platform. As with C for Unix family operating systems, in the browser platform all fundamental capabilities are exposed through the JavaScript language. For years, Pyodide has included a comprehensive JavaScript foreign function interface. This provides the equivalent of the os module for the JavaScript world.

#python

PEP 818 – Adding the Core of the Pyodide Foreign Function Interface to Python | peps.python.org

Pyodide is a distribution of Python for JavaScript runtimes, including browsers. Browsers are a universal computing platform. As with C for Unix family operating systems, in the browser platform all fundamental capabilities are exposed through the JavaS...

Python Enhancement Proposals (PEPs)

PEP 821: Support for unpacking TypedDicts in Callable type hints

This PEP proposes allowing Unpack[TypedDict] in the parameter list inside Callable, enabling concise and type-safe ways to describe keyword-only callable signatures. Currently, Callable assumes positional-only parameters, and typing keyword-only functions requires verbose callback protocols. With this proposal, the keyword structure defined by a TypedDict can be reused directly in Callable.

#python

PEP 821 – Support for unpacking TypedDicts in Callable type hints | peps.python.org

This PEP proposes allowing Unpack[TypedDict] in the parameter list inside Callable, enabling concise and type-safe ways to describe keyword-only callable signatures. Currently, Callable assumes positional-only parameters, and typing keyword-only functio...

Python Enhancement Proposals (PEPs)

PEP 817: Wheel Variants: Beyond Platform Tags

Python’s existing wheel packaging format uses packaging:specifications/platform-compatibility-tags to specify a given wheel’s supported environments. These tags are unable to express modern hardware configurations and their features, such as the availability of GPU acceleration. The tags fail to provide custom package variants, such as builds against different dependency ABIs. These inabilities are particularly challenging for scientific computing, artificial intelligence (AI), machine learning (ML), and high-performance computing (HPC) communities.

#python

PEP 817 – Wheel Variants: Beyond Platform Tags | peps.python.org

Python’s existing wheel packaging format uses packaging:specifications/platform-compatibility-tags to specify a given wheel’s supported environments. These tags are unable to express modern hardware configurations and their features, such as the availab...

Python Enhancement Proposals (PEPs)

PEP 822: Dedented Multiline String (d-string)

This PEP proposes to add a feature that automatically removes indentation from multiline string literals.

#python

PEP 822 – Dedented Multiline String (d-string) | peps.python.org

This PEP proposes to add a feature that automatically removes indentation from multiline string literals.

Python Enhancement Proposals (PEPs)