[issue12704] Language References does not specify exception raised by final yield()

2011-12-11 Thread Nikolaus Rath
Nikolaus Rath added the comment: Hmm. Does the total lack responses mean agreement, disagreement or lack of interest? I'm attaching a patch against Python 3.3 in the hope of moving this forward. -- keywords: +patch Added file: http://bugs.python.org/file23924/patch_v1.diff __

[issue12704] Language References does not specify exception raised by final yield()

2011-09-11 Thread Nikolaus Rath
Changes by Nikolaus Rath : -- versions: +Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list ma

[issue12704] Language References does not specify exception raised by final yield()

2011-08-06 Thread Nikolaus Rath
Nikolaus Rath added the comment: >From http://www.python.org/dev/peps/pep-0342/ I believe that the last yield >will raise GeneratorExit. So my suggestion is to replace the above mentioned >paragraph with: """ As of Python version 2.5, yield is an expression rather than a statement and allowe

[issue12704] Language References does not specify exception raised by final yield()

2011-08-06 Thread Nikolaus Rath
New submission from Nikolaus Rath : >From http://docs.python.org/reference/simple_stmts.html#the-yield-statement: "As of Python version 2.5, the yield statement is now allowed in the try clause of a try ... finally construct. If the generator is not resumed before it is finalized (by reaching