[issue32892] Remove specific constant AST types in favor of ast.Constant
Nick Coghlan
report at bugs.python.org
Wed Feb 21 05:32:55 EST 2018
Nick Coghlan <ncoghlan at gmail.com> added the comment:
As pure aliases, those wouldn't necessarily be that useful, as aside from NameConstant, the field names are different (Num.n, Str.s, Bytes.s).
I do wonder whether it might be worth keeping "NameConstant", though, and use that for Ellipsis as well, so the singletons all use NameConstant, while regular constants use Constant.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32892>
_______________________________________
More information about the Python-bugs-list
mailing list