This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients Claudiu.Popa, ncoghlan, pitrou, skrah
Date 2013-09-28.14:28:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1380378507.57.0.378544631949.issue19078@psf.upfronthosting.co.za>
In-reply-to
Content
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])]
>>>
History
Date User Action Args
2013-09-28 14:28:27skrahsetrecipients: + skrah, ncoghlan, pitrou, Claudiu.Popa
2013-09-28 14:28:27skrahsetmessageid: <1380378507.57.0.378544631949.issue19078@psf.upfronthosting.co.za>
2013-09-28 14:28:27skrahlinkissue19078 messages
2013-09-28 14:28:27skrahcreate