2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 05:42:30 +00:00
[SVN r42905]
This commit is contained in:
Daniel James
2008-01-21 20:15:02 +00:00
parent 2b1967c72d
commit 6449c56efe
2 changed files with 16 additions and 0 deletions

View File

@@ -12,6 +12,16 @@
3
4
5
>>> def generator():
... yield 1
... yield 2
... raise RuntimeError, "oops"
>>> try:
... x.assign(iter(generator()))
... print "NOT OK"
... except RuntimeError:
... print "OK"
OK
'''
def run(args = None):
import sys