Tim Hochberg wrote:
>things are often not as easy as they appear, the real reason I'm writing
>is this comment that explains why object arrays are disallowed in
>fromiter (multiarraymodule.c::PyArray_:FromIter)
>
>/* We would need to alter the memory RENEW code to decrement any
>
I was looking at fromiter again today with an eye toward extending it to
accept iterators of sequences instead of just iterators of scalars. For
example:
fromiter(([x, x // 2, x+5] for x in range(1000)), dtype=int)
This would result in a shape-(1000,3) array. At first glance at least,
thi