Mailing List Archive

python/nondist/sandbox/ast python.asdl,1.19,1.20
Update of /cvsroot/python/python/nondist/sandbox/ast
In directory usw-pr-cvs1:/tmp/cvs-serv6470

Modified Files:
python.asdl
Log Message:
Added my suggested changes to slice.
- ExtSlice is used to capture a comma separated list of slices
- Index is used to capture a single index value.



Index: python.asdl
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/ast/python.asdl,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** python.asdl 21 Apr 2002 11:33:56 -0000 1.19
--- python.asdl 21 Apr 2002 11:37:15 -0000 1.20
***************
*** 73,77 ****
slice = Ellipsis | Slice(expr? lower, expr? upper)
-- maybe Slice and ExtSlice should be merged...
! | ExtSlice(expr* dims)

boolop = And | Or
--- 73,78 ----
slice = Ellipsis | Slice(expr? lower, expr? upper)
-- maybe Slice and ExtSlice should be merged...
! | ExtSlice(slice* dims)
! | Index(expr value)

boolop = And | Or