cpython/Doc/reference
Miss Islington (bot) 9ddc7c548d
[3.14] gh-119180: Updates to PEP 649/749 docs (GH-134640) (#134731)
gh-119180: Updates to PEP 649/749 docs (GH-134640)

- Mention (again) that `type.__annotations__` is unsafe. It is now safe
  when using only classes defined under PEP 649 semantics, but not with
  classes defined using `from __future__ import annotations`.
- Mention that annotations on instances no longer work. There was already
  an issue about this.
- Mention the general changes in the "Porting to Python 3.14" section.
- `annotationlib` was proposed by PEP-749, not PEP-649.
(cherry picked from commit 7291eaba8b)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
2025-05-26 15:40:43 +00:00
..
compound_stmts.rst [3.14] gh-134026: Fix grammar description of for statement (GH-134034) (GH-134424) 2025-05-21 18:43:07 +02:00
datamodel.rst [3.14] gh-119180: Updates to PEP 649/749 docs (GH-134640) (#134731) 2025-05-26 15:40:43 +00:00
executionmodel.rst gh-70870: Clarify dual usage of 'free variable' (#122545) 2024-10-08 07:52:12 +00:00
expressions.rst [3.14] gh-134026: Fix grammar description of for statement (GH-134034) (GH-134424) 2025-05-21 18:43:07 +02:00
grammar.rst Docs: Add label to grammar spec for linking from PEPs (#113235) 2023-12-17 12:23:14 -07:00
import.rst Doc: update term "namespace package" (#129251) 2025-02-14 13:47:54 -05:00
index.rst
introduction.rst GH-103484: Fix permanently redirects reported by linkcheck (GH-124144) 2024-09-17 02:53:38 +00:00
lexical_analysis.rst [3.14] gh-127833: lexical analysis: Improve section on Names (GH-131474) (#134423) 2025-05-26 11:00:17 +03:00
simple_stmts.rst Docs: Miscellaneous corrections to simple statements in the language reference (GH-126720) 2024-11-15 13:02:34 -08:00
toplevel_components.rst gh-130587: Add hand-written docs for non-OP tokens (GH-130588) 2025-03-19 16:42:11 +01:00