[issue4703] Syntax error in sample code for enumerate in documentation.

2008-12-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the report! Fixed in r67865. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue4703] Syntax error in sample code for enumerate in documentation.

2008-12-19 Thread Roger
New submission from Roger : 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 bac