From 271d7e7e65a4e7b662bff79bd4ad014df7bf7f8b Mon Sep 17 00:00:00 2001 From: James Gerity Date: Wed, 23 Jul 2025 22:32:34 -0400 Subject: [PATCH 1/3] Remove notice about ast node types no longer available --- Doc/library/ast.rst | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst index ef6c62dca1e124..16acb220efc75f 100644 --- a/Doc/library/ast.rst +++ b/Doc/library/ast.rst @@ -139,13 +139,6 @@ Node classes The :meth:`~object.__repr__` output of :class:`~ast.AST` nodes includes the values of the node fields. -.. deprecated:: 3.8 - - Old classes :class:`!ast.Num`, :class:`!ast.Str`, :class:`!ast.Bytes`, - :class:`!ast.NameConstant` and :class:`!ast.Ellipsis` are still available, - but they will be removed in future Python releases. In the meantime, - instantiating them will return an instance of a different class. - .. deprecated:: 3.9 Old classes :class:`!ast.Index` and :class:`!ast.ExtSlice` are still From 2d399926fe2bb811354fc186c6ec28cffae3debf Mon Sep 17 00:00:00 2001 From: James Gerity Date: Fri, 25 Jul 2025 12:55:48 -0400 Subject: [PATCH 2/3] Restore and reword note about removed types --- Doc/library/ast.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst index 16acb220efc75f..8e4d80df05e80c 100644 --- a/Doc/library/ast.rst +++ b/Doc/library/ast.rst @@ -139,6 +139,13 @@ Node classes The :meth:`~object.__repr__` output of :class:`~ast.AST` nodes includes the values of the node fields. +.. deprecated-removed:: 3.8 3.14 + + Previous versions of Python provided the AST classes :class:`!ast.Num`, + :class:`!ast.Str`, :class:`!ast.Bytes`, :class:`!ast.NameConstant` and + :class:`!ast.Ellipsis`, which were deprecated in Python 3.8 and removed in + Python 3.14, and which have been replaced with :class:`ast.Constant`. + .. deprecated:: 3.9 Old classes :class:`!ast.Index` and :class:`!ast.ExtSlice` are still From 8a04be1d075a7c8add2302364a95d34780302794 Mon Sep 17 00:00:00 2001 From: James Gerity Date: Fri, 25 Jul 2025 14:59:11 -0400 Subject: [PATCH 3/3] Tidy run-on sentence --- Doc/library/ast.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst index 8e4d80df05e80c..822aa86fb6b023 100644 --- a/Doc/library/ast.rst +++ b/Doc/library/ast.rst @@ -143,8 +143,9 @@ Node classes Previous versions of Python provided the AST classes :class:`!ast.Num`, :class:`!ast.Str`, :class:`!ast.Bytes`, :class:`!ast.NameConstant` and - :class:`!ast.Ellipsis`, which were deprecated in Python 3.8 and removed in - Python 3.14, and which have been replaced with :class:`ast.Constant`. + :class:`!ast.Ellipsis`, which were deprecated in Python 3.8. These classes + were removed in Python 3.14, and their functionality has been replaced with + :class:`ast.Constant`. .. deprecated:: 3.9 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy