Message71993
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 |
|
Date |
User |
Action |
Args |
2008-08-26 20:17:15 | laxrulz777 | set | recipients:
+ laxrulz777 |
2008-08-26 20:17:15 | laxrulz777 | set | messageid: <1219781835.24.0.0803885539905.issue3689@psf.upfronthosting.co.za> |
2008-08-26 20:17:14 | laxrulz777 | link | issue3689 messages |
2008-08-26 20:17:13 | laxrulz777 | create | |
|