[Python-checkins] python/dist/src/Python newcompile.c,1.1.2.29,1.1.2.30

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
2003年3月25日 08:28:00 -0800


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv19828
Modified Files:
 Tag: ast-branch
	newcompile.c 
Log Message:
Special-case AugStore, because we don't need to load the base value.
Index: newcompile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/newcompile.c,v
retrieving revision 1.1.2.29
retrieving revision 1.1.2.30
diff -C2 -d -r1.1.2.29 -r1.1.2.30
*** newcompile.c	25 Mar 2003 16:26:54 -0000	1.1.2.29
--- newcompile.c	25 Mar 2003 16:27:56 -0000	1.1.2.30
***************
*** 1261,1265 ****
 	/* The following exprs can be assignment targets. */
 case Attribute_kind:
! 		VISIT(c, expr, e->v.Attribute.value);
 		switch (e->v.Attribute.ctx) {
 		case AugLoad:
--- 1261,1266 ----
 	/* The following exprs can be assignment targets. */
 case Attribute_kind:
! 		if (e->v.Attribute.ctx != AugStore)
! 			VISIT(c, expr, e->v.Attribute.value);
 		switch (e->v.Attribute.ctx) {
 		case AugLoad:

AltStyle によって変換されたページ (->オリジナル) /