[Numpy-discussion] why does u.resize return None?
Robert Kern
robert.kern at gmail.com
Thu Sep 11 10:59:28 EDT 2014
On Thu, Sep 11, 2014 at 3:27 PM, Neal Becker <ndbecker2 at gmail.com> wrote:
> It would be useful if u.resize returned the new array, so it could be used for
> chaining operations
Same reason why list.sort() and friends return None.
https://docs.python.org/2/faq/design.html#why-doesn-t-list-sort-return-the-sorted-list
--
Robert Kern
More information about the NumPy-Discussion
mailing list