[PYTHON MATRIX-SIG] [tbyang@icf.llnl.gov: Some subtlety in reaching items of a matrix]

James Hugunin jjh@mama-bear.lcs.mit.edu
Fri, 10 Nov 95 12:45:43 -0500

> If c[0,1] becomes a euphemism for c[(0,1)]. I will be very confused in
> interpreting c[0], as it can correpond to both c[0,1] and c[0][1], if
> they do different things.

This is in a very good point!  Just so you know how things will work (if no  
changes are made).

c[0] will be a reference to the data in c, and c[0,] will be a copy of the  
data in c.  This is incredibly ugly, but again, I don't know what to do  
about it.


MATRIX-SIG  - SIG on Matrix Math for Python

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