[PYTHON MATRIX-SIG] Slices
Wed, 3 Apr 96 13:44:35 EST
From: firstname.lastname@example.org (Konrad HINSEN)
Another idea: introduce an object "index_expression" that can be
indexed to get an equivalent expression. Then
i = index_expression[2:4,...]
would be equivalent to
There would be no new syntax to learn; although users might have
to know that index expressions are really tuples if they want
to do something that is not possible with standard indexing.
Anybody who's interested in this idea can do the following under v0.35.
index_expression = Numeric.__slice_generating_class()
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: email@example.com
administrivia to: firstname.lastname@example.org