Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Cython generators clear the current exception #1731
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jbradaric commentedJun 12, 2017
Cython version 0.25.2
To reproduce, create the following files:
generator_bug.pyx
setup.py
Run
python setup.pyto build the extension module.Run the following code from Python REPL:
The above code will not exit with a
ZeroDivisionError, but aTypeErrororRuntimeError, depending on whether the code is run using Python 2 or Python 3.