Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

+1 This looks like a nice improvement.  I've long wanted the optimizations to 
be moved upstream.  

At the time the peephole logic was first written, operating directly on the 
code object was the only option that kept optimizations separate from the core 
compiler logic. But disassembling and reassembling bytecode was always awkward 
— it is nice to no longer have to do so.

----------
nosy: +rhettinger

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41323>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to