]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Use new _implicitNameOp() to generate name op code for list comprehensions.
authorJeremy Hylton <jeremy@alum.mit.edu>
Thu, 12 Apr 2001 21:04:43 +0000 (21:04 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Thu, 12 Apr 2001 21:04:43 +0000 (21:04 +0000)
commit13d70944cba10f6f9b39aa94cb9c5df442523dda
treef443417d887e85847838db9d33f65199c6be7546
parent23f7aed2a792190c42209732f1520ccb7321be8e
Use new _implicitNameOp() to generate name op code for list comprehensions.

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.
Lib/compiler/pycodegen.py
Tools/compiler/compiler/pycodegen.py