Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 40241:6a860c81ab7d legacy-trunk
Clean up a leftover from old listcomp generation code.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Sun, 29 Oct 2006 08:47:08 +0000 |
| parents | 3608605a74d5 |
| children | c6774eb3a067 |
line wrap: on
line diff
--- a/Python/compile.c Sun Oct 29 08:39:22 2006 +0000 +++ b/Python/compile.c Sun Oct 29 08:47:08 2006 +0000 @@ -2619,7 +2619,7 @@ } ADDOP_JABS(c, JUMP_ABSOLUTE, start); compiler_use_next_block(c, anchor); - /* delete the append method added to locals */ + /* delete the temporary list name added to locals */ if (gen_index == 1) if (!compiler_nameop(c, tmpname, Del)) return 0; @@ -2632,15 +2632,9 @@ { identifier tmp; int rc = 0; - static identifier append; asdl_seq *generators = e->v.ListComp.generators; assert(e->kind == ListComp_kind); - if (!append) { - append = PyString_InternFromString("append"); - if (!append) - return 0; - } tmp = compiler_new_tmpname(c); if (!tmp) return 0;
