Message96489
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 |
|
Date |
User |
Action |
Args |
2009-12-16 15:09:24 | xiscu | set | recipients:
+ xiscu, georg.brandl |
2009-12-16 15:09:24 | xiscu | set | messageid: <1260976164.25.0.0113295033016.issue7525@psf.upfronthosting.co.za> |
2009-12-16 15:09:22 | xiscu | link | issue7525 messages |
2009-12-16 15:09:22 | xiscu | create | |
|