thautwarm <yaoxiansa...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue32892>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to