Skip to content

Commit 2d39992

Browse files
committed
Restore and reword note about removed types
1 parent 271d7e7 commit 2d39992

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/library/ast.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,13 @@ Node classes
139139
The :meth:`~object.__repr__` output of :class:`~ast.AST` nodes includes
140140
the values of the node fields.
141141

142+
.. deprecated-removed:: 3.8 3.14
143+
144+
Previous versions of Python provided the AST classes :class:`!ast.Num`,
145+
:class:`!ast.Str`, :class:`!ast.Bytes`, :class:`!ast.NameConstant` and
146+
:class:`!ast.Ellipsis`, which were deprecated in Python 3.8 and removed in
147+
Python 3.14, and which have been replaced with :class:`ast.Constant`.
148+
142149
.. deprecated:: 3.9
143150

144151
Old classes :class:`!ast.Index` and :class:`!ast.ExtSlice` are still

0 commit comments

Comments
 (0)