From: Surendra Singhi Date: 2006-09-13T03:17:11+09:00 Subject: Re: Matrix Dave Burt writes: > The benefit is that you can assume no other code is modifying your matrix. > > n = Matrix.I(2) > some_function(n) > p n # same as before > > It's a good feature. n.freeze can ensure immutability. It is just incovenient that []= is not defined, I still don't buy the matrices are immutable concept argument. Cheers, -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | Great wits are sure to madness near allied, | And thin partitions do their bounds divide. | | (John Dryden, Absalom and Achitophel, 1681) `----