[Python-checkins] CVS: python/dist/src/Python compile.c,2.117,2.118
Thomas Wouters
python-dev@python.org
Sat, 5 Aug 2000 14:37:53 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory slayer.i.sourceforge.net:/tmp/cvs-serv21345
Modified Files:
compile.c
Log Message:
Fix some strange indentation and grammar that have been bugging me for
weeks.
Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.117
retrieving revision 2.118
diff -C2 -r2.117 -r2.118
*** compile.c 2000/07/22 18:47:25 2.117
--- compile.c 2000/08/05 21:37:50 2.118
***************
*** 1250,1259 ****
if (NCH(n) == 1) {
node *sub = CHILD(n, 0); /* subscript */
! /* Make it is a simple slice.
! Should have exactly one colon. */
! if ((TYPE(CHILD(sub, 0)) == COLON
! || (NCH(sub) > 1 && TYPE(CHILD(sub, 1)) == COLON))
! && (TYPE(CHILD(sub,NCH(sub)-1)) != sliceop))
! {
if (assigning == OP_APPLY)
op = SLICE;
--- 1250,1258 ----
if (NCH(n) == 1) {
node *sub = CHILD(n, 0); /* subscript */
! /* 'Basic' slice, should have exactly one colon. */
! if ((TYPE(CHILD(sub, 0)) == COLON
! || (NCH(sub) > 1 && TYPE(CHILD(sub, 1)) == COLON))
! && (TYPE(CHILD(sub,NCH(sub)-1)) != sliceop))
! {
if (assigning == OP_APPLY)
op = SLICE;