Message71993
| 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: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 |
|