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 trenholmes
Recipients georg.brandl, trenholmes
Date 2008-12-20.03:08:08
SpamBayes Score 0.0283183
Marked as misclassified No
Message-id <>
Summary: Sample code for enumerate contains a syntax error. The same
code reads:

>>> for i, season in enumerate(['Spring', 'Summer', 'Fall', 'Winter')]:
...     print(i, season)

Where the parenthesis and square bracket to the left of the colon in the
for line are backwards.  It should read:

>>> for i, season in enumerate(['Spring', 'Summer', 'Fall', 'Winter']):

Date User Action Args
2008-12-20 03:08:10trenholmessetrecipients: + trenholmes, georg.brandl
2008-12-20 03:08:10trenholmessetmessageid: <>
2008-12-20 03:08:09trenholmeslinkissue4703 messages
2008-12-20 03:08:08trenholmescreate