# PEPs

**URL:** https://discuss.python.org/c/peps/19.md

[Latest](https://discuss.python.org/latest.md) · [Categories](https://discuss.python.org/categories.md) · [Tags](https://discuss.python.org/tags.md)

---

## [About the PEPs category](https://discuss.python.org/t/about-the-peps-category/2331)

<div class="topic-metadata">

**Author:** [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Replies:** 0\
**Last updated:** [September 13, 2019, 9:12am UTC](https://discuss.python.org/t/about-the-peps-category/2331 "2019-09-13T09:12:58Z")

</div>

An area to discuss proposed Python enhancement proposals. This category is open to all to allow for public comments on PEPs.

---

## [PEP 849: More Expressive Type Expressions](https://discuss.python.org/t/pep-849-more-expressive-type-expressions/109189)

<div class="topic-metadata">

**Author:** [@ImogenBits](https://discuss.python.org/u/ImogenBits)\
**Replies:** 18\
**Last updated:** [November 17, 2026, 6:58pm UTC](https://discuss.python.org/t/pep-849-more-expressive-type-expressions/109189 "2026-11-17T18:58:35Z")

</div>

I’m excited to present PEP 849, which adds some new background capabilities to the way type annotations are processed in order to let us use arbitrary expressions while maintaining runtime introspection. Currently, you …

---

## [PEP 852: Asynchronous functions in the C API](https://discuss.python.org/t/pep-852-asynchronous-functions-in-the-c-api/110003)

<div class="topic-metadata">

**Author:** [@ZeroIntensity](https://discuss.python.org/u/ZeroIntensity)\
**Replies:** 16\
**Last updated:** [November 17, 2026, 5:08pm UTC](https://discuss.python.org/t/pep-852-asynchronous-functions-in-the-c-api/110003 "2026-11-17T17:08:52Z")

</div>

Nearly four years after the original discussion, I am pleased to present PEP 852, which adds a proper interface for using async/await in the C API. Here’s an example: static int return\_result(PyObject \*asyncobj, PyObjec…

---

## [PEP 851: Add list.discard()](https://discuss.python.org/t/pep-851-add-list-discard/109701)

<div class="topic-metadata">

**Author:** [@Stanfromireland](https://discuss.python.org/u/Stanfromireland)\
**Replies:** 98\
**Last updated:** [November 14, 2026, 10:01pm UTC](https://discuss.python.org/t/pep-851-add-list-discard/109701 "2026-11-14T22:01:37Z")

</div>

Abstract Add list.discard(x), which removes the first item equal to x if one is present and does nothing otherwise, returning whether an item was removed. It is the non-raising counterpart to list.remove(), as set.discar…

---

## [PEP 822: Dedented Multiline String (d-string)](https://discuss.python.org/t/pep-822-dedented-multiline-string-d-string/105519)

<div class="topic-metadata">

**Author:** [@methane](https://discuss.python.org/u/methane)\
**Replies:** 152\
**Last updated:** [November 10, 2026, 9:58pm UTC](https://discuss.python.org/t/pep-822-dedented-multiline-string-d-string/105519 "2026-11-10T21:58:56Z")

</div>

Happy new year, and new PEP. After several years of long discussion, I wrote up the d-string PEP. Old threads: Str.dedent vs str.removeindent D-string vs str.dedent() Markdown code-block style syntax for string lite…

---

## [PEP 813 - The Pretty Print Protocol (round 2)](https://discuss.python.org/t/pep-813-the-pretty-print-protocol-round-2/109651)

<div class="topic-metadata">

**Author:** [@barry](https://discuss.python.org/u/barry)\
**Replies:** 15\
**Last updated:** [November 9, 2026, 2:05am UTC](https://discuss.python.org/t/pep-813-the-pretty-print-protocol-round-2/109651 "2026-11-09T02:05:12Z")

</div>

At the recently concluded Python core team sprint, @ericvsmith and I worked on some major updates to PEP 813 - The Pretty Print Protocol. We think it’s in pretty\[1\] good shape and essentially ready to be proposed for Py…

---

## [PEP 846: Docstrings for Type Aliases](https://discuss.python.org/t/pep-846-docstrings-for-type-aliases/109116)

<div class="topic-metadata">

**Author:** [@bswck](https://discuss.python.org/u/bswck)\
**Replies:** 11\
**Last updated:** [November 7, 2026, 12:53am UTC](https://discuss.python.org/t/pep-846-docstrings-for-type-aliases/109116 "2026-11-07T00:53:18Z")

</div>

I am pleased to present PEP 846, a well-received idea to recognize docstrings of type aliases in Python. What I like the most about it is that it looks like an easy win for the language. It’s focused, it has support in…

---

## [PEP 848: Generational Incremental Garbage Collection](https://discuss.python.org/t/pep-848-generational-incremental-garbage-collection/109214)

<div class="topic-metadata">

**Author:** [@markshannon](https://discuss.python.org/u/markshannon)\
**Replies:** 7\
**Last updated:** [November 6, 2026, 7:17am UTC](https://discuss.python.org/t/pep-848-generational-incremental-garbage-collection/109214 "2026-11-06T07:17:28Z")

</div>

tldr: Replaces the current generational-only cycle GC with a generational-incremental GC with lower overhead. Much faster: 3-5% speedup on pyperformance Shorter pause times: How much shorter depends on the application…

---

## [PEP 824: None-coalescing operators](https://discuss.python.org/t/pep-824-none-coalescing-operators/109161)

<div class="topic-metadata">

**Author:** [@cdce8p](https://discuss.python.org/u/cdce8p)\
**Replies:** 90\
**Last updated:** [November 4, 2026, 6:36pm UTC](https://discuss.python.org/t/pep-824-none-coalescing-operators/109161 "2026-11-04T18:36:48Z")

</div>

Building on the ideas from PEP 505 and after many discussions over the years, I’m happy to present PEP 824: None-coalescing operators. Please be sure to also check out the discussion for the companion PEP 823. Abstract T…

---

## [PEP 827: Type Manipulation](https://discuss.python.org/t/pep-827-type-manipulation/106353)

<div class="topic-metadata">

**Author:** [@yselivanov](https://discuss.python.org/u/yselivanov)\
**Replies:** 140\
**Last updated:** [November 4, 2026, 6:16pm UTC](https://discuss.python.org/t/pep-827-type-manipulation/106353 "2026-11-04T18:16:42Z")

</div>

This is a discussion thread on PEP 827 – Type Manipulation. The motivation for this PEP comes from a gap between Python and TypeScript: Python has an incredibly dynamic and powerful runtime, while TypeScript has an incr…

---

## [PEP 823: None-aware access operators](https://discuss.python.org/t/pep-823-none-aware-access-operators/109159)

<div class="topic-metadata">

**Author:** [@cdce8p](https://discuss.python.org/u/cdce8p)\
**Replies:** 115\
**Last updated:** [November 2, 2026, 9:24am UTC](https://discuss.python.org/t/pep-823-none-aware-access-operators/109159 "2026-11-02T09:24:32Z")

</div>

Building on the ideas from PEP 505 and after many discussions over the years, I’m happy to present PEP 823: None-aware access operators. Please be sure to also check out the discussion for the companion PEP 824. Abstrac…

---

## [PEP 836: JIT Go Brrr: The Path to a Supported JIT Compiler for CPython](https://discuss.python.org/t/pep-836-jit-go-brrr-the-path-to-a-supported-jit-compiler-for-cpython/108010)

<div class="topic-metadata">

**Author:** [@kj0](https://discuss.python.org/u/kj0)\
**Replies:** 83\
**Last updated:** [October 31, 2026, 6:50am UTC](https://discuss.python.org/t/pep-836-jit-go-brrr-the-path-to-a-supported-jit-compiler-for-cpython/108010 "2026-10-31T06:50:06Z")

</div>

Hello! @savannahostrowski @brandtbucher and I have drafted a PEP for the roadmap to an officially supported JIT in CPython, including the holistic criteria that the JIT should meet, in response to the Steering Council’s…

---

## [PEP 832: virtual environment discovery](https://discuss.python.org/t/pep-832-virtual-environment-discovery/106998)

<div class="topic-metadata">

**Author:** [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Replies:** 211\
**Last updated:** [October 29, 2026, 11:04pm UTC](https://discuss.python.org/t/pep-832-virtual-environment-discovery/106998 "2026-10-29T23:04:36Z")

</div>

The abstract: This PEP sets out to help make the discovery of a project’s virtual environment easier for tools by providing a default location as well as a way for a project to point to its preferred virtual environm…

---

## [PEP 813 - The Pretty Print Protocol](https://discuss.python.org/t/pep-813-the-pretty-print-protocol/106242)

<div class="topic-metadata">

**Author:** [@barry](https://discuss.python.org/u/barry)\
**Replies:** 101\
**Last updated:** [October 24, 2026, 3:58pm UTC](https://discuss.python.org/t/pep-813-the-pretty-print-protocol/106242 "2026-10-24T15:58:43Z")

</div>

A couple of the elder statesmen are happy to announce PEP 813, a proposal to build-in optional pretty printing for print(), str.format(), and f-strings, and to define a protocol classes can implement to participate in an…

---

## [PEP 718: subscriptable functions](https://discuss.python.org/t/pep-718-subscriptable-functions/28457)

<div class="topic-metadata">

**Author:** [@Gobot1234](https://discuss.python.org/u/Gobot1234)\
**Replies:** 152\
**Last updated:** [October 21, 2026, 2:36pm UTC](https://discuss.python.org/t/pep-718-subscriptable-functions/28457 "2026-10-21T14:36:04Z")

</div>

TLDR; This PEP proposes making various function-like instances subscriptable for typing purposes so doing things like: def create\_list\[T\](\*args: T) -\> list\[T\]: ... create\_list\[int\]() # type is list\[int\] would work …

---

## [PEP 774: Removing the LLVM requirement for JIT builds](https://discuss.python.org/t/pep-774-removing-the-llvm-requirement-for-jit-builds/78548)

<div class="topic-metadata">

**Author:** [@savannahostrowski](https://discuss.python.org/u/savannahostrowski)\
**Replies:** 41\
**Last updated:** [October 20, 2026, 4:05pm UTC](https://discuss.python.org/t/pep-774-removing-the-llvm-requirement-for-jit-builds/78548 "2026-10-20T16:05:37Z")

</div>

Hey folks, I wanted to share PEP 774: Removing the LLVM requirement for JIT builds. The purpose of this PEP is to decide whether continuing to have a build-time dependency on LLVM for JIT builds is acceptable. The prop…

---

## [PEP 835: Shorthand syntax for Annotated type metadata](https://discuss.python.org/t/pep-835-shorthand-syntax-for-annotated-type-metadata/107814)

<div class="topic-metadata">

**Author:** [@till-varoquaux](https://discuss.python.org/u/till-varoquaux)\
**Replies:** 213\
**Last updated:** [October 19, 2026, 9:59pm UTC](https://discuss.python.org/t/pep-835-shorthand-syntax-for-annotated-type-metadata/107814 "2026-10-19T21:59:06Z")

</div>

Following up on our initial feedback thread, PEP 835 is now officially live. I am proposing T @ Metadata as a built-in shorthand for typing.Annotated\[T, Metadata\]. # Before class Person: age: Annotated\[int, Field(ge…

---

## [PEP 818: Adding the Core of the Pyodide Foreign Function Interface to Python (2)](https://discuss.python.org/t/pep-818-adding-the-core-of-the-pyodide-foreign-function-interface-to-python-2/109311)

<div class="topic-metadata">

**Author:** [@hoodmane](https://discuss.python.org/u/hoodmane)\
**Replies:** 6\
**Last updated:** [October 12, 2026, 3:26pm UTC](https://discuss.python.org/t/pep-818-adding-the-core-of-the-pyodide-foreign-function-interface-to-python-2/109311 "2026-10-12T15:26:16Z")

</div>

This is the second discuss thread for PEP 818. The previous thread is here. I got the following feedback: Various name changes were requested, which I implemented. The PEP was too long, so I reduced the length by about…

---

## [PEP 845: Leading-Dot Value Patterns](https://discuss.python.org/t/pep-845-leading-dot-value-patterns/109100)

<div class="topic-metadata">

**Author:** [@tmk](https://discuss.python.org/u/tmk)\
**Replies:** 10\
**Last updated:** [October 9, 2026, 9:25am UTC](https://discuss.python.org/t/pep-845-leading-dot-value-patterns/109100 "2026-10-09T09:25:33Z")

</div>

For your consideration: PEP 845, with the following abstract: This PEP enables the use of non-attribute names as value patterns in match statements. A name prefixed with a dot is looked up using the normal name resolut…

---

## [PEP 661: Sentinel Values](https://discuss.python.org/t/pep-661-sentinel-values/9126)

<div class="topic-metadata">

**Author:** [@taleinat](https://discuss.python.org/u/taleinat)\
**Replies:** 378\
**Last updated:** [October 7, 2026, 6:44am UTC](https://discuss.python.org/t/pep-661-sentinel-values/9126 "2026-10-07T06:44:46Z")

</div>

---

## [PEP 828: Supporting 'yield from' in asynchronous generators](https://discuss.python.org/t/pep-828-supporting-yield-from-in-asynchronous-generators/106459)

<div class="topic-metadata">

**Author:** [@ZeroIntensity](https://discuss.python.org/u/ZeroIntensity)\
**Replies:** 75\
**Last updated:** [October 6, 2026, 7:44am UTC](https://discuss.python.org/t/pep-828-supporting-yield-from-in-asynchronous-generators/106459 "2026-10-06T07:44:15Z")

</div>

Hello, I’ve written a PEP proposing support for yield from in async generators, as well as an async yield from statement. This is currently targeted towards 3.15, but with the beta freeze coming up soon, this might not…

---

## [PEP 818: Adding the Core of the Pyodide Foreign Function Interface to Python](https://discuss.python.org/t/pep-818-adding-the-core-of-the-pyodide-foreign-function-interface-to-python/105530)

<div class="topic-metadata">

**Author:** [@hoodmane](https://discuss.python.org/u/hoodmane)\
**Replies:** 22\
**Last updated:** [October 1, 2026, 12:05pm UTC](https://discuss.python.org/t/pep-818-adding-the-core-of-the-pyodide-foreign-function-interface-to-python/105530 "2026-10-01T12:05:20Z")

</div>

I wrote a PEP to upstream the core of the Pyodide FFI. This is necessary for using most JavaScript APIs on the Emscripten platform. Asyncio support, buffer protocol support, and a more complete JS API are all deferred. …

---

## [PEP 805: Safe Parallel Python](https://discuss.python.org/t/pep-805-safe-parallel-python/108670)

<div class="topic-metadata">

**Author:** [@markshannon](https://discuss.python.org/u/markshannon)\
**Replies:** 108\
**Last updated:** [September 28, 2026, 12:46pm UTC](https://discuss.python.org/t/pep-805-safe-parallel-python/108670 "2026-09-28T12:46:56Z")

</div>

After a year of on and off development, I am pleased to present PEP 805. Abstract This PEP proposes internal changes to CPython and a new API to support safe, parallel execution of Python. With this PEP, parallel execut…

---

## [PEP 843: Export Statement for DRY Re-exports](https://discuss.python.org/t/pep-843-export-statement-for-dry-re-exports/108687)

<div class="topic-metadata">

**Author:** [@NeilGirdhar](https://discuss.python.org/u/NeilGirdhar)\
**Replies:** 118\
**Last updated:** [September 24, 2026, 2:50am UTC](https://discuss.python.org/t/pep-843-export-statement-for-dry-re-exports/108687 "2026-09-24T02:50:42Z")

</div>

PEP 843 is ready for discussion. It adds a small statement, from x export y \[as z\], that does what from x import y \[as z\] does and also appends the name to \_\_all\_\_ in the same statement. # spam/init.py from .\_internal.…

---

## [PEP 844: \`public\` and \`private\` builtins](https://discuss.python.org/t/pep-844-public-and-private-builtins/108515)

<div class="topic-metadata">

**Author:** [@barry](https://discuss.python.org/u/barry)\
**Replies:** 150\
**Last updated:** [September 22, 2026, 6:08pm UTC](https://discuss.python.org/t/pep-844-public-and-private-builtins/108515 "2026-09-22T18:08:43Z")

</div>

The second proposal of the Public API Trilogy has been publish, albeit out of order. You’ll have to go back and read the second novel when it comes out. Here then is PEP 844 proposing to add public and private builtins…

---

## [Revisiting PEP 505 – None-aware operators](https://discuss.python.org/t/revisiting-pep-505-none-aware-operators/74568)

<div class="topic-metadata">

**Author:** [@noahbkim](https://discuss.python.org/u/noahbkim)\
**Replies:** 407\
**Last updated:** [September 21, 2026, 11:12pm UTC](https://discuss.python.org/t/revisiting-pep-505-none-aware-operators/74568 "2026-09-21T23:12:08Z")

</div>

All, I would like to revive PEP 505, which proposes null-coalescing via ?., ??, and ??=. I believe this set of operators fills an ergonomic gap in the language where users are currently forced to choose between the foot…

---

## [PEP 802: Display Syntax for the Empty Set](https://discuss.python.org/t/pep-802-display-syntax-for-the-empty-set/101676)

<div class="topic-metadata">

**Author:** [@AA-Turner](https://discuss.python.org/u/AA-Turner)\
**Replies:** 245\
**Last updated:** [September 10, 2026, 8:25pm UTC](https://discuss.python.org/t/pep-802-display-syntax-for-the-empty-set/101676 "2026-09-10T20:25:30Z")

</div>

For your consideration: PEP 802: Display Syntax for the Empty Set. From the Abstract: We propose a new notation, {/}, to construct and represent the empty set. This is modelled after the corresponding mathematical sy…

---

## [PEP 767: Annotating Read-Only Attributes](https://discuss.python.org/t/pep-767-annotating-read-only-attributes/73408)

<div class="topic-metadata">

**Author:** [@Eneg](https://discuss.python.org/u/Eneg)\
**Replies:** 134\
**Last updated:** [September 9, 2026, 3:57am UTC](https://discuss.python.org/t/pep-767-annotating-read-only-attributes/73408 "2026-09-09T03:57:40Z")

</div>

Hi, I’m presenting PEP 767. It enables the use of ReadOnly within attribute annotations, as a way to remove \[1\] the ability to reassign or delete an attribute of an object. Any feedback is welcome! at a type chec…

---

## [PEP 814: Add frozendict built-in type](https://discuss.python.org/t/pep-814-add-frozendict-built-in-type/104854)

<div class="topic-metadata">

**Author:** [@vstinner](https://discuss.python.org/u/vstinner)\
**Replies:** 138\
**Last updated:** [August 24, 2026, 2:17pm UTC](https://discuss.python.org/t/pep-814-add-frozendict-built-in-type/104854 "2026-08-24T14:17:23Z")

</div>

You can read the PEP at: PEP 814 – Add frozendict built-in type. Abstract A new public immutable type frozendict is added to the builtins module. We expect frozendict to be safe by design, as it prevents any unintended…

---

## [PEP 838: Adding python-version to pyvenv.cfg](https://discuss.python.org/t/pep-838-adding-python-version-to-pyvenv-cfg/108234)

<div class="topic-metadata">

**Author:** [@konstin](https://discuss.python.org/u/konstin)\
**Replies:** 16\
**Last updated:** [August 17, 2026, 11:06pm UTC](https://discuss.python.org/t/pep-838-adding-python-version-to-pyvenv-cfg/108234 "2026-08-17T23:06:21Z")

</div>

Hi, I’d like to propose adding a python-version field to pyvenv.cfg. Unlike version and version\_info, it records only the major and minor version and is resilient to patch version updates. This is a small change: The…

[Next page](https://discuss.python.org/c/peps/19.md?page=1)
