summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2024-05-06 22:57:27 (GMT)
committerGitHub <noreply@github.com>2024-05-06 22:57:27 (GMT)
commite0422198fb4de0a5d81edd3de0d0ed32c119e9bb (patch)
tree8fedfb2ee456f4a96ddb673fbea256085c631e74 /Misc
parent040571f258d13a807f5c8e4ce0a182d5f9a2e81b (diff)
downloadcpython-e0422198fb4de0a5d81edd3de0d0ed32c119e9bb.zip
cpython-e0422198fb4de0a5d81edd3de0d0ed32c119e9bb.tar.gz
cpython-e0422198fb4de0a5d81edd3de0d0ed32c119e9bb.tar.bz2
gh-117486: Improve behavior for user-defined AST subclasses (#118212)
Now, such classes will no longer require changes in Python 3.13 in the normal case. The test suite for robotframework passes with no DeprecationWarnings under this PR. I also added a new DeprecationWarning for the case where `_field_types` exists but is incomplete, since that seems likely to indicate a user mistake.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2024-04-23-21-17-00.gh-issue-117486.ea3KYD.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-04-23-21-17-00.gh-issue-117486.ea3KYD.rst b/Misc/NEWS.d/next/Library/2024-04-23-21-17-00.gh-issue-117486.ea3KYD.rst
new file mode 100644
index 0000000..f02d895
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2024-04-23-21-17-00.gh-issue-117486.ea3KYD.rst
@@ -0,0 +1,4 @@
+Improve the behavior of user-defined subclasses of :class:`ast.AST`. Such
+classes will now require no changes in the usual case to conform with the
+behavior changes of the :mod:`ast` module in Python 3.13. Patch by Jelle
+Zijlstra.