
Feb. 26, 2003
3:35 p.m.
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