https://github.com/python/cpython
Revision 13d70944cba10f6f9b39aa94cb9c5df442523dda authored by Jeremy Hylton on 12 April 2001, 21:04:43 UTC, committed by Jeremy Hylton on 12 April 2001, 21:04:43 UTC
Always emit a SET_LINENO 0 at the beginning of the module.  The
builtin compiler does this, and it's much easier to compare bytecode
generated by the two compilers if they both do.

Move the SET_LINENO inside the FOR_LOOP block for list
comprehensions.  Also for compat. with builtin compiler.
1 parent 23f7aed
History
Tip revision: 13d70944cba10f6f9b39aa94cb9c5df442523dda authored by Jeremy Hylton on 12 April 2001, 21:04:43 UTC
Use new _implicitNameOp() to generate name op code for list comprehensions.
Tip revision: 13d7094
File Mode Size
.cvsignore -rw-r--r-- 31 bytes
Grammar -rw-r--r-- 4.4 KB

back to top