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
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to