>>> list(cy_iterator())
[]
+>>> try:
+... raise ValueError
+... except:
+... print(sys.exc_info()[0] is ValueError or sys.exc_info()[0])
+... a = list(py_iterator())
+... print(sys.exc_info()[0] is ValueError or sys.exc_info()[0])
+True
+True
+
+>>> print(sys.exc_info()[0] is None or sys.exc_info()[0])
+True
+
>>> try:
... raise ValueError
... except:
True
True
->>> if IS_PY3: print(sys.exc_info()[0] is None or sys.exc_info()[0])
-... else: print(sys.exc_info()[0] is ValueError or sys.exc_info()[0])
+>>> print(sys.exc_info()[0] is None or sys.exc_info()[0])
True
>>> double_raise(py_iterator)
True
True
->>> if IS_PY3: print(sys.exc_info()[0] is None or sys.exc_info()[0])
-... else: print(sys.exc_info()[0] is ValueError or sys.exc_info()[0])
+>>> print(sys.exc_info()[0] is None or sys.exc_info()[0])
True
"""