[Python-checkins] CVS: python/dist/src/Python compile.c,2.121,2.122

Thomas Wouters python-dev@python.org
Sat, 12 Aug 2000 15:03:19 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory slayer.i.sourceforge.net:/tmp/cvs-serv6253/Python

Modified Files:
	compile.c 
Log Message:

The list comprehensions patch partly reversed the removal of UNPACK_LIST,
re-introducing com_assign_list, now unused. Removed it.



Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.121
retrieving revision 2.122
diff -C2 -r2.121 -r2.122
*** compile.c	2000/08/12 18:09:51	2.121
--- compile.c	2000/08/12 22:03:16	2.122
***************
*** 1847,1863 ****
  
  static void
- com_assign_list(struct compiling *c, node *n, int assigning)
- {
- 	int i;
- 	if (assigning) {
- 		i = (NCH(n)+1)/2;
- 		com_addoparg(c, UNPACK_SEQUENCE, i);
- 		com_push(c, i-1);
- 	}
- 	for (i = 0; i < NCH(n); i += 2)
- 		com_assign(c, CHILD(n, i), assigning);
- }
- 
- static void
  com_assign_name(struct compiling *c, node *n, int assigning)
  {
--- 1847,1850 ----