[NumPy-Tickets] [NumPy] #1391: Fill value and empty arrays
NumPy Trac
numpy-tickets@scipy....
Mon Feb 8 14:42:56 CST 2010
#1391: Fill value and empty arrays
------------------------+---------------------------------------------------
Reporter: robitaille | Owner: pierregm
Type: defect | Status: new
Priority: normal | Milestone:
Component: numpy.ma | Version: devel
Keywords: |
------------------------+---------------------------------------------------
Comment(by pierregm):
* About ma.empty/ma.zeros/ma.ones: that's a valid idea, I'll implement
that.
* About copying the fill_value when copying fields: I don't think that's
advisable. First, it's always best to be explicit. Second, that would add
an overhead which is not needed in the majority of cases (fill_value is
mostly for convenience anyway, and most often the default is sufficient:
why should we spend some time copying the default, when you're not likely
to use it anyway). Third, if we implemented it, we would need some kind of
option to preserve the current behavior and that'd be far too tricky to
implement. Too many drawbacks for little advantage, I'll keep the current
behavior
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1391#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list