[Python-Dev] Unexpected bytecode difference (original) (raw)
Victor Stinner victor.stinner at gmail.com
Fri Jan 19 19🔞59 EST 2018
- Previous message (by thread): [Python-Dev] Unexpected bytecode difference
- Next message (by thread): [Python-Dev] Unexpected bytecode difference
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
It seems like the EXTENDED_ARG doc wasn't updated.
Victor
2018-01-20 1:07 GMT+01:00 Alexander Belopolsky <alexander.belopolsky at gmail.com>:
On Fri, Jan 19, 2018 at 7:01 PM, Guido van Rossum <guido at python.org> wrote:
Presumably because Python 3 switched to wordcode. Applying dis.dis() to these code objects results in the same output.
dis.dis(c) 0 LOADNAME 0 (0) 3 RETURNVALUE I expected these changes to be documented at <https://docs.python.org/3/library/dis.html>, but the EXTENDEDARG section, for example, is the same in the 2 and 3 versions and says that the default argument is two bytes.
Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/victor.stinner%40gmail.com
- Previous message (by thread): [Python-Dev] Unexpected bytecode difference
- Next message (by thread): [Python-Dev] Unexpected bytecode difference
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]