mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Reverting last commit. I had some staled data from an attempted svnmerge in my local sandbox
This commit is contained in:
parent
e69c320d48
commit
f9290773fc
7 changed files with 6 additions and 683 deletions
|
@ -1668,19 +1668,6 @@ And finalization:
|
|||
exiting
|
||||
|
||||
|
||||
GeneratorExit is not caught by except Exception:
|
||||
|
||||
>>> def f():
|
||||
... try: yield
|
||||
... except Exception: print 'except'
|
||||
... finally: print 'finally'
|
||||
|
||||
>>> g = f()
|
||||
>>> g.next()
|
||||
>>> del g
|
||||
finally
|
||||
|
||||
|
||||
Now let's try some ill-behaved generators:
|
||||
|
||||
>>> def f():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue