little mistake in documentation of dis.opmap in the dis module

Hello,
I think I have discovered a little mistake in the documentation of the disassembler module. There it says [1, 2, 3]:
dis.opmap Dictionary mapping bytecodes to operation names.
But for me it looks more like a mapping of operation names to bytecodes.
[1] http://docs.python.org/library/dis.html#dis.opmap [2] http://docs.python.org/py3k/library/dis.html#dis.opmap [3] http://docs.python.org/dev/py3k/library/dis.html#dis.opmap
Sincerely, Alexander

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am 28.09.2010 00:11, schrieb Alexander Behringer:
Hello,
I think I have discovered a little mistake in the documentation of the disassembler module. There it says [1, 2, 3]:
dis.opmap Dictionary mapping bytecodes to operation names.
But for me it looks more like a mapping of operation names to bytecodes.
[1] http://docs.python.org/library/dis.html#dis.opmap [2] http://docs.python.org/py3k/library/dis.html#dis.opmap [3] http://docs.python.org/dev/py3k/library/dis.html#dis.opmap
Hi Alexander,
thanks for the report; this is now fixed in the development docs.
regards, Georg
participants (2)
-
Alexander Behringer
-
Georg Brandl