homepage

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 ezio.melotti
Recipients ezio.melotti, tormen
Date 2010年02月08日.19:06:54
SpamBayes Score 0.0004476479
Marked as misclassified No
Message-id <1265656016.86.0.484926870212.issue7886@psf.upfronthosting.co.za>
In-reply-to
Content
list.reverse() reverses the list *in place* and returns None, and "for item in None: ..." correctly raises a TypeError because None is not iterable.
You either want 
for item in reversed(mylist): ...
or
mylist.reverse()
for item in mylist: ...
History
Date User Action Args
2010年02月08日 19:06:56ezio.melottisetrecipients: + ezio.melotti, tormen
2010年02月08日 19:06:56ezio.melottisetmessageid: <1265656016.86.0.484926870212.issue7886@psf.upfronthosting.co.za>
2010年02月08日 19:06:54ezio.melottilinkissue7886 messages
2010年02月08日 19:06:54ezio.melotticreate

AltStyle によって変換されたページ (->オリジナル) /