[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis
report at bugs.python.org
Thu Sep 22 06:28:05 CEST 2011
Nick Coghlan <ncoghlan at gmail.com> added the comment:
'Op' is just an abbreviation of 'operation'. So 'operation code' becomes 'opcode' and 'operation information' becomes 'opinfo'. The fact that it comes for the 'dis' module gives the context that the *kind* of operation we're talking about is a Python byte code instruction.
When people are hacking on bytecode in the future, they'll likely end up using get_opinfo() a fair bit, so swapping the succinct 'opinfo' for the verbose 'bytecode_instruction' strikes me as a poor trade-off.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list