Message198516
Yes, len() should return the number of items. +1 for making reversed()
work.
NumPy does this:
>>> x = numpy.array([1,2,3,4,5,6,7,8])
>>> list(reversed(x))
[8, 7, 6, 5, 4, 3, 2, 1]
>>>
>>> x = numpy.array([[1,2,3], [4,5,6]])
>>> list(reversed(x))
[array([4, 5, 6]), array([1, 2, 3])]
>>> |
|
Date |
User |
Action |
Args |
2013-09-28 14:28:27 | skrah | set | recipients:
+ skrah, ncoghlan, pitrou, Claudiu.Popa |
2013-09-28 14:28:27 | skrah | set | messageid: <1380378507.57.0.378544631949.issue19078@psf.upfronthosting.co.za> |
2013-09-28 14:28:27 | skrah | link | issue19078 messages |
2013-09-28 14:28:27 | skrah | create | |
|