Skip to content

Commit 66586e7

Browse files
committed
Retarget removal for Python 3.20
1 parent 97dbdab commit 66586e7

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

Doc/deprecations/pending-removal-in-3.19.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
Pending removal in Python 3.19
22
------------------------------
33

4-
* :mod:`ast`:
5-
6-
* Creating instances of abstract AST nodes (such as :class:`ast.AST`
7-
or :class:`!ast.expr`) is deprecated and will raise an error in Python 3.19.
8-
94
* :mod:`ctypes`:
105

116
* Implicitly switching to the MSVC-compatible struct layout by setting

Doc/deprecations/pending-removal-in-3.20.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@ Pending removal in Python 3.20
2121
- :mod:`tkinter.ttk`
2222

2323
(Contributed by Hugo van Kemenade in :gh:`76007`.)
24+
25+
* :mod:`ast`:
26+
27+
* Creating instances of abstract AST nodes (such as :class:`ast.AST`
28+
or :class:`!ast.expr`) is deprecated and will raise an error in Python 3.20.

Doc/library/ast.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,13 @@ Node classes
161161
match any of the fields of the AST node. This behavior is deprecated and will
162162
be removed in Python 3.15.
163163

164-
.. deprecated-removed:: next 3.19
164+
.. deprecated-removed:: next 3.20
165165

166166
In the :ref:`grammar above <abstract-grammar>`, the AST node classes that
167167
correspond to production rules with variants (aka "sums") are abstract
168168
classes. Previous versions of Python allowed for the creation of direct
169169
instances of these abstract node classes. This behavior is deprecated and
170-
will be removed in Python 3.19.
170+
will be removed in Python 3.20.
171171

172172

173173
.. note::

Doc/whatsnew/3.15.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ ast
609609
---
610610

611611
* Creating instances of abstract AST nodes (such as :class:`ast.AST`
612-
or :class:`!ast.expr`) is deprecated and will raise an error in Python 3.19.
612+
or :class:`!ast.expr`) is deprecated and will raise an error in Python 3.20.
613613
(Contributed by Brian Schubert in :gh:`116021`.)
614614

615615

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Support for creating instances of abstract AST nodes from the :mod:`ast` module
2-
is deprecated and scheduled for removal in Python 3.19. Patch by Brian Schubert.
2+
is deprecated and scheduled for removal in Python 3.20. Patch by Brian Schubert.

Parser/asdl_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ def visitModule(self, mod):
889889
if (PyErr_WarnFormat(
890890
PyExc_DeprecationWarning, 1,
891891
"Instantiating abstract AST node class %T is deprecated. "
892-
"This will become an error in Python 3.19", self) < 0)
892+
"This will become an error in Python 3.20", self) < 0)
893893
{
894894
return -1;
895895
}

Python/Python-ast.c

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)