[Python-checkins] r52519 - python/trunk/Python/compile.c

georg.brandl python-checkins at python.org
Sun Oct 29 09:47:08 CET 2006


Author: georg.brandl
Date: Sun Oct 29 09:47:08 2006
New Revision: 52519

Modified:
   python/trunk/Python/compile.c
Log:
Clean up a leftover from old listcomp generation code.



Modified: python/trunk/Python/compile.c
==============================================================================
--- python/trunk/Python/compile.c	(original)
+++ python/trunk/Python/compile.c	Sun Oct 29 09:47:08 2006
@@ -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;


More information about the Python-checkins mailing list