[issue46797] ast.Constant.n deprecated without warning

Serhiy Storchaka report at bugs.python.org
Sat Feb 19 07:24:07 EST 2022


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

It is because we did not have a plan for removing deprecates features. Deprecation in documentation only helps third-party code. Instead of adding a complex code which switches between using old and new names depending on Python version, the third-party code can continue to use old names without worring about deprecation warnings, and switch completely to using new features only when support of old Python versions be dropped. 3.7 and 3.8 are not so old and may be still supported in third-party code.

I have created a PR which adds deprecation warnings, but I am not sure that it is worth to include it in 3.11.

----------
priority: normal -> low
resolution:  -> postponed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46797>
_______________________________________


More information about the Python-bugs-list mailing list