[issue32892] Remove specific constant AST types in favor of ast.Constant
thautwarm
report at bugs.python.org
Sat Sep 22 01:40:07 EDT 2018
thautwarm <yaoxiansamma at gmail.com> added the comment:
I'm in favor of this idea for prospective extensions that could be implemented through this brand-new ast.Constant.
Actually I used to expect a more general ast.Constant when I was manipulating ASTs half a year ago, at that time my job is to make staging functions that take some user-defined types as constants(in these scenes, these types are definitely immutable and permanent) to gain performance improvements and avoid redundant allocations, and what I exactly wanted is such an ast.Constant.
----------
nosy: +thautwarm
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32892>
_______________________________________
More information about the Python-bugs-list
mailing list