Re: [Numpy-discussion] array flags not copied/deepcopied

2012-10-16 Thread Nathaniel Smith
On Tue, Oct 16, 2012 at 4:36 PM, Byron Blay wrote: > Copying / deepcopying an array does not copy the writeable flag: > import numpy from copy import deepcopy a = numpy.array([1,2,3,4,5]) a.flags.writeable = False b = deepcopy(a) b.flags.writeable > True > > Is this a

[Numpy-discussion] array flags not copied/deepcopied

2012-10-16 Thread Byron Blay
Copying / deepcopying an array does not copy the writeable flag: >>> import numpy >>> from copy import deepcopy >>> a = numpy.array([1,2,3,4,5]) >>> a.flags.writeable = False >>> b = deepcopy(a) >>> b.flags.writeable True Is this a bug? Should I raise an issue on github? Many thanks, Byron _