This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jwilk
Recipients jwilk, serhiy.storchaka
Date 2022-02-19.08:29:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645259356.98.0.34127429103.issue46797@roundup.psfhosted.org>
In-reply-to
Content
ast.Constant.n is documented to be deprecated, but you don't get any warning when you use it:

$ python3.11 -Wd
Python 3.11.0a5 (main, Feb 12 2022, 17:11:59) [GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ast
>>> help(ast.Constant.n)
Help on property:

    Deprecated. Use value instead.

>>> ast.Constant(value=42).n
42
History
Date User Action Args
2022-02-19 08:29:17jwilksetrecipients: + jwilk, serhiy.storchaka
2022-02-19 08:29:16jwilksetmessageid: <1645259356.98.0.34127429103.issue46797@roundup.psfhosted.org>
2022-02-19 08:29:16jwilklinkissue46797 messages
2022-02-19 08:29:16jwilkcreate