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 laxrulz777
Recipients laxrulz777
Date 2008-08-26.20:17:13
SpamBayes Score 0.0044609983
Marked as misclassified No
Message-id <1219781835.24.0.0803885539905.issue3689@psf.upfronthosting.co.za>
In-reply-to
Content
reversed() built in is not functioning correctly with list (specifically
with len() )

l = [1,2,3,4]
rl = reversed(l)

type(rl)
<type 'listreverseiterator'>

vs. strings and tuples which just return 'reverse' objects

listreverseiterators apparently have a len() defined that changes with
each .next() call
History
Date User Action Args
2008-08-26 20:17:15laxrulz777setrecipients: + laxrulz777
2008-08-26 20:17:15laxrulz777setmessageid: <1219781835.24.0.0803885539905.issue3689@psf.upfronthosting.co.za>
2008-08-26 20:17:14laxrulz777linkissue3689 messages
2008-08-26 20:17:13laxrulz777create