Re: [Numpy-discussion] FeatureRequest: support for array construction from iterators

2016-01-19 Thread Stephan Sahm
like in the current fromiter method. On 15 December 2015 at 08:08, Stephan Sahm wrote: > I would like to further push Benjamin Root's suggestion: > > "Therefore, I think it is not out of the realm of reason that passing a > generator object and a dtype could then delegate t

Re: [Numpy-discussion] FeatureRequest: support for array construction from iterators

2015-12-14 Thread Stephan Sahm
I would like to further push Benjamin Root's suggestion: "Therefore, I think it is not out of the realm of reason that passing a generator object and a dtype could then delegate the work under the hood to np.fromiter()? I would even go so far as to raise an error if one passes a generator without

Re: [Numpy-discussion] FeatureRequest: support for array construction from iterators

2015-12-11 Thread Stephan Sahm
und a compelling argument for leaving this Feature missing (to remember, it is already implemented in a branch) Please let me know if you know about an argument, best, Stephan On 27 November 2015 at 14:18, Alan G Isaac wrote: > On 11/27/2015 5:37 AM, Stephan Sahm wrote: > >> I like to re

[Numpy-discussion] FeatureRequest: support for array construction from iterators

2015-11-27 Thread Stephan Sahm
​​ [ this ​request /discussion refers to numpy issue ​​ ​​ #5863 ​ ​ ​​ https://github.com/numpy/numpy/pull/5863#issuecomment-159738368 ] Dear all, As far as I can think, the expected functionality of np.array(...) would be np.array(list(...)) or something even nicer. Therefore, I like to reques