[Numpy-tickets] [NumPy] #1005: numpy not working with itertools.chain objects

NumPy numpy-tickets@scipy....
Wed Feb 11 22:39:41 CST 2009

#1005: numpy not working with itertools.chain objects
 Reporter:  rogerbrent  |        Owner:  somebody
     Type:  defect      |       Status:  closed  
 Priority:  normal      |    Milestone:  1.3.0   
Component:  numpy.core  |      Version:  none    
 Severity:  normal      |   Resolution:  wontfix 
 Keywords:              |  
Comment (by rkern):

 You can just use the builtin sum() function. array() does not work with
 normal iterators, just sequences. xrange(), for example, is a sequence,
 not an iterator. It has {{{__len__}}} and {{{__getitem__}}} methods. I
 don't know exactly what you've tried that leads you to think that normal
 iterators work.

 If you want to talk about it more, please ask on the mailing list. Trac
 tickets aren't good for back-and-forth conversations.

Ticket URL: <http://scipy.org/scipy/numpy/ticket/1005#comment:3>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list