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
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.cvsignore -rw-r--r-- 79 bytes
.hgtags -rw-r--r-- 1.9 KB
LICENSE -rw-r--r-- 9.2 KB
Makefile.pre.in -rw-r--r-- 21.8 KB
README -rw-r--r-- 37.9 KB
acconfig.h -rw-r--r-- 6.0 KB
config.h.in -rw-r--r-- 16.5 KB
configure -rwxr-xr-x 177.3 KB
configure.in -rw-r--r-- 36.3 KB
install-sh -rwxr-xr-x 5.5 KB
setup.py -rw-r--r-- 24.5 KB

README

back to top