◐ Shell
clean mode source ↗

List and document remaining significant PEPs in What's New in 3.11

As discussed with @pablogsal , meta-issue to add the significant PEPs not yet added to the summary section of the What's New in Python 3.11, as well as PEPs that are not documented in the body of the What's New but probably should be.

Specifically, the PEPs not currently mentioned in the Summary - Release Highlights section are (written with a non-canonical - so GitHub will link them):

  • PEP-594 Removing dead stdlib batteries
  • PEP-624 Remove Py_UNICODE encoder APIs
  • PEP-657 Fine-grained error locations
  • PEP-670 Macros to Functions in the C API
  • PEP-678 Enriching exceptions with notes
  • PEP-680: Tomllib
  • PEP-681 Dataclass transforms
  • PEP-682 Format specifier for signed zero (?)

These will be added to the relevant lists as appropriate, following the mold of the Python 3.10 What's New

Most 3.11 PEPs are already described in other What's New sections, but a few are conspicuously missing and should probably be documented somewhere. I've cross referenced this with the PEP API, as well as Accepted/Final PEPs that were not tagged with a Python-Version (notably, PEP 654 was lacking it, which I also fixed):

Then, once those are dealt with, we should finally:

Related: #95913