Re: [Numpy-discussion] immutable numpy arrays

2008-12-19 Thread Geoffrey Irving
On Thu, Dec 18, 2008 at 1:00 PM, Robert Kern wrote: > On Thu, Dec 18, 2008 at 10:01, Geoffrey Irving wrote: >> On Wed, Dec 17, 2008 at 4:28 PM, Robert Kern wrote: > >>> It just seems to me to be another complication that does not provide >>> any guarantees. You say "Currently numpy arrays are ei

Re: [Numpy-discussion] immutable numpy arrays

2008-12-18 Thread Robert Kern
On Thu, Dec 18, 2008 at 10:01, Geoffrey Irving wrote: > On Wed, Dec 17, 2008 at 4:28 PM, Robert Kern wrote: >> It just seems to me to be another complication that does not provide >> any guarantees. You say "Currently numpy arrays are either writable or >> unwritable, but unwritable arrays can s

Re: [Numpy-discussion] immutable numpy arrays

2008-12-18 Thread Geoffrey Irving
On Wed, Dec 17, 2008 at 4:28 PM, Robert Kern wrote: > On Wed, Dec 17, 2008 at 17:45, Geoffrey Irving wrote: >> On Wed, Dec 17, 2008 at 3:34 PM, Robert Kern wrote: >>> On Wed, Dec 17, 2008 at 16:51, Geoffrey Irving wrote: On Wed, Dec 17, 2008 at 2:24 PM, Robert Kern wrote: > On Wed, De

Re: [Numpy-discussion] immutable numpy arrays

2008-12-17 Thread Robert Kern
On Wed, Dec 17, 2008 at 17:45, Geoffrey Irving wrote: > On Wed, Dec 17, 2008 at 3:34 PM, Robert Kern wrote: >> On Wed, Dec 17, 2008 at 16:51, Geoffrey Irving wrote: >>> On Wed, Dec 17, 2008 at 2:24 PM, Robert Kern wrote: On Wed, Dec 17, 2008 at 15:52, Geoffrey Irving wrote: > Currentl

Re: [Numpy-discussion] immutable numpy arrays

2008-12-17 Thread Geoffrey Irving
On Wed, Dec 17, 2008 at 3:34 PM, Robert Kern wrote: > On Wed, Dec 17, 2008 at 16:51, Geoffrey Irving wrote: >> On Wed, Dec 17, 2008 at 2:24 PM, Robert Kern wrote: >>> On Wed, Dec 17, 2008 at 15:52, Geoffrey Irving wrote: Currently numpy arrays are either writable or unwritable, but un

Re: [Numpy-discussion] immutable numpy arrays

2008-12-17 Thread Robert Kern
On Wed, Dec 17, 2008 at 16:51, Geoffrey Irving wrote: > On Wed, Dec 17, 2008 at 2:24 PM, Robert Kern wrote: >> On Wed, Dec 17, 2008 at 15:52, Geoffrey Irving wrote: >>> Currently numpy arrays are either writable or unwritable, but >>> unwritable arrays can still be changed through other copies.

Re: [Numpy-discussion] immutable numpy arrays

2008-12-17 Thread Geoffrey Irving
On Wed, Dec 17, 2008 at 2:24 PM, Robert Kern wrote: > On Wed, Dec 17, 2008 at 15:52, Geoffrey Irving wrote: >> Currently numpy arrays are either writable or unwritable, but >> unwritable arrays can still be changed through other copies. This >> means that when a numpy array is passed into an int

Re: [Numpy-discussion] immutable numpy arrays

2008-12-17 Thread Robert Kern
On Wed, Dec 17, 2008 at 15:52, Geoffrey Irving wrote: > Currently numpy arrays are either writable or unwritable, but > unwritable arrays can still be changed through other copies. This > means that when a numpy array is passed into an interface that > requires immutability for safety reasons, a

[Numpy-discussion] immutable numpy arrays

2008-12-17 Thread Geoffrey Irving
Currently numpy arrays are either writable or unwritable, but unwritable arrays can still be changed through other copies. This means that when a numpy array is passed into an interface that requires immutability for safety reasons, a copy always has to be made. One way around this would be to ad