[Python-Dev] Suggest reverting today's checkin (recursive constant folding in the peephole optimizer)
Steven D'Aprano
steve at pearwood.info
Sat Mar 12 07:49:36 CET 2011
Cesare Di Mauro wrote:
> Also, optimizations can be done not only for numbers, but even for tuples,
> lists, dictionaries, and... slices (pag. 22). See pages 21-24 of
> this<http://wpython2.googlecode.com/files/Beyond%20Bytecode%20-%20A%20Wordcode-based%20Python.pdf>
For the record, constant-folding, and the lack of it, does seem to come
up in users' requests. Whether they *need* constant-folding or not, it
seems that some people have come to expect it. E.g. see this recent
thread on python-list:
http://code.activestate.com/lists/python-list/596506/
--
Steven
More information about the Python-Dev
mailing list