]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-90953: Emit deprecation warnings for `ast` features deprecated in Python 3.8 ...
authorAlex Waygood <Alex.Waygood@Gmail.com>
Sat, 6 May 2023 16:48:07 +0000 (17:48 +0100)
committerGitHub <noreply@github.com>
Sat, 6 May 2023 16:48:07 +0000 (16:48 +0000)
commit376137f6ec73e0800e49cec6100e401f6154b693
tree90eee18d9ae242e3b6e131ed689c50bdfe93af72
parent263abd333d18b8825cf6d68a5051818826dbffce
gh-90953: Emit deprecation warnings for `ast` features deprecated in Python 3.8 (#104199)

`ast.Num`, `ast.Str`, `ast.Bytes`, `ast.Ellipsis` and `ast.NameConstant` now all emit deprecation warnings on import, access, instantation or `isinstance()` checks.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/whatsnew/3.12.rst
Lib/ast.py
Lib/test/test_ast.py
Misc/NEWS.d/next/Library/2022-02-19-14-19-34.bpo-46797.6BXZX4.rst [new file with mode: 0644]