[Python-Dev] Bytecode analysis
Skip Montanaro
skip@pobox.com
Wed, 26 Feb 2003 09:35:12 -0600
Guido> One problem with renumbering the opcodes is that you have to
Guido> update the "dis" module, which exports the opcodes as Python
Guido> constants. Maybe you should add some code there to regenerate
Guido> the values from the .h file, as is done in keyword.py and
Guido> symbol.py.
I have long had a version of dis.py which imports opcode info from
a separate opcodes.py. Perhaps it's time to make that change. opcodes.py
could then be mostly generated automatically from Include/opcode.h.
(The reason for separating this out is to make opcode info available to
other modules, like peephole optimizers.)
Should I submit a patch?
Skip