[PYTHON MATRIX-SIG] Slices

Guido van Rossum guido@CNRI.Reston.VA.US
Wed, 03 Apr 1996 13:27:01 -0500


> Another idea: introduce an object "index_expression" that can be
> indexed to get an equivalent expression. Then
>    i = index_expression[2:4,...]
>    a[i]
> would be equivalent to
>    a[2:4,...]

Very clever.  The index_expression object would simply package all its
arguments and return them as a Slice() object.  Way to go!

--Guido van Rossum <guido@CNRI.Reston.VA.US>
URL: <http://www.python.org/~guido/>

=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================