[Numpy-discussion] array comprehension

Stephan Hoyer shoyer at gmail.com
Fri Nov 4 13:32:05 EDT 2016

On Fri, Nov 4, 2016 at 10:24 AM, Nathaniel Smith <njs at pobox.com> wrote:

> Are you sure fromiter doesn't make an intermediate list or equivalent? It
> has to collect all the values before it can know the shape or dtype of the
> array to put them in.
fromiter dynamically resizes a NumPy array, like a Python list, except with
a growth factor of 1.5 (rather than 1.25):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20161104/ac62334a/attachment.html>

More information about the NumPy-Discussion mailing list