]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-140344: ast: Add deprecation warnings (#140345)
authorJeff Epler <jepler@unpythonic.net>
Mon, 18 May 2026 18:20:49 +0000 (11:20 -0700)
committerGitHub <noreply@github.com>
Mon, 18 May 2026 18:20:49 +0000 (11:20 -0700)
commit806c997f55a5460c3dcabc022dcf275220b3d46e
tree5699b35bf7c6ef254c7208863d2cd510831fe731
parentdbd8985e8262055ed091de9a72660b7c112a4ce7
gh-140344: ast: Add deprecation warnings (#140345)

These were all deprecated in 3.9 (bace59d8b8) but without
a runtime deprecation warning. Add it now, so that these
items can be removed in 3.21 per PEP 387.

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/deprecations/index.rst
Doc/deprecations/pending-removal-in-3.21.rst [new file with mode: 0644]
Doc/whatsnew/3.16.rst
Lib/ast.py
Lib/test/test_ast/test_ast.py
Misc/NEWS.d/next/Library/2025-10-20-09-12-18.gh-issue-140344.WjbYg-.rst [new file with mode: 0644]