summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2023-06-02 01:39:39 (GMT)
committerGitHub <noreply@github.com>2023-06-02 01:39:39 (GMT)
commit77d25795862f19c6e3d647b76cfb10d5ce1f149c (patch)
tree65312bb62cd0635d25b7ff257565afeb7af470c0 /Misc
parent37498fc95012ba8e147db646b841bc3d36ddf4af (diff)
downloadcpython-77d25795862f19c6e3d647b76cfb10d5ce1f149c.zip
cpython-77d25795862f19c6e3d647b76cfb10d5ce1f149c.tar.gz
cpython-77d25795862f19c6e3d647b76cfb10d5ce1f149c.tar.bz2
gh-104799: Default missing lists in AST to the empty list (#104834)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2023-05-31-08-10-59.gh-issue-104799.8kDWti.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-05-31-08-10-59.gh-issue-104799.8kDWti.rst b/Misc/NEWS.d/next/Core and Builtins/2023-05-31-08-10-59.gh-issue-104799.8kDWti.rst
new file mode 100644
index 0000000..e1fe47f
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2023-05-31-08-10-59.gh-issue-104799.8kDWti.rst
@@ -0,0 +1,4 @@
+Attributes of :mod:`ast` nodes that are lists now default to the empty list
+if omitted. This means that some code that previously raised
+:exc:`TypeError` when the AST node was used will now proceed with the empty
+list instead. Patch by Jelle Zijlstra.