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 xiscu
Recipients georg.brandl, xiscu
Date 2009-12-16.15:09:21
SpamBayes Score 8.890099e-06
Marked as misclassified No
Message-id <1260976164.25.0.0113295033016.issue7525@psf.upfronthosting.co.za>
In-reply-to
Content
In the documentation the is:

...
>>>generator.throw(TypeError, "spam")
TypeError('spam',)
>>> generator.close()
Don't forget to clean up when 'close()' is called.
...

I'm getting:
>>>generator.throw(TypeError, "spam")
TypeError('spam',)
>>> generator.close()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: generator ignored GeneratorExit
...

My proposal here is yield_example_1.py

Thanks
History
Date User Action Args
2009-12-16 15:09:24xiscusetrecipients: + xiscu, georg.brandl
2009-12-16 15:09:24xiscusetmessageid: <1260976164.25.0.0113295033016.issue7525@psf.upfronthosting.co.za>
2009-12-16 15:09:22xisculinkissue7525 messages
2009-12-16 15:09:22xiscucreate