New submission from Jeff Hall <[EMAIL PROTECTED]>: 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 ---------- messages: 71993 nosy: laxrulz777 severity: normal status: open title: reversed() not working as intended on lists type: behavior versions: Python 2.5 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3689> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com