Re: [docs] generator.throw() documentation inaccurate (issue 14911)
Feb. 4, 2014
12:30 a.m.
I'm not sure we need an example for this. At least not in its current form. http://bugs.python.org/review/14911/diff/10905/Doc/reference/expressions.rst File Doc/reference/expressions.rst (right): http://bugs.python.org/review/14911/diff/10905/Doc/reference/expressions.rst... Doc/reference/expressions.rst:451: generator.send(foo()) Actually, I have a question: did you mean something like: try: result = foo() except Exception as ex: generator.throw(ex.with_traceback(None)) else: generator.send(result) ? http://bugs.python.org/review/14911/
4451
Age (days ago)
4451
Last active (days ago)
0 comments
1 participants
participants (1)
-
yselivanov.ml@gmail.com