[Python-Dev] Wordcode: new regular bytecode using 16-bit units

Victor Stinner victor.stinner at gmail.com
Wed Apr 13 17:44:14 EDT 2016

Le mercredi 13 avril 2016, Ryan Gonzalez <rymg19 at gmail.com> a écrit :

> What is the value of HAS_ARG going to be now?

I asked Demur to keep HAS_ARG(). Not really for backward compatibility, but
for the dis module: to keep a nice assembler. There are also debug traces
in ceval.c which use it.

For ceval.c, we might use HAS_ARG() to micro-optimize oparg=0 (hardcode 0
rather than reading the bytecode) for operators with no argument. Or maybe
it's completly useless :-)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20160413/5251f952/attachment.html>

More information about the Python-Dev mailing list