Title: Typo in a listing in 5.2.9 of language reference
Type: Stage:
Components: Documentation Versions: Python 3.1
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, gregorlingl
Priority: normal Keywords:

Created on 2009-08-01 21:55 by gregorlingl, last changed 2009-08-03 17:51 by georg.brandl. This issue is now closed.

Messages (2)
msg91171 - (view) Author: Gregor Lingl (gregorlingl) Date: 2009-08-01 21:55
Error in:

Python v3.1 documentation >> The Python language reference >>

In the listing at the end of section 5.2.9 Yield expressions,
line 7:

...             except Exception, e:

is syntactically incorrect and consequently raises a Syntax Error.
Should read:

...             except Exception as e:
msg91234 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-08-03 17:51
Thanks, fixed in r74297, backported to 3.1 in r74298.
Date User Action Args
2009-08-03 17:51:28georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg91234
2009-08-01 21:55:14gregorlinglcreate