-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
BUG: Fix for #6719 #6721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Fix for #6719 #6721
Conversation
@@ -127,6 +127,7 @@ cdef extern from "initarray.h": | |||
# Initialize numpy | |||
import_array() | |||
|
|||
import cython |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does cimport cython
work? That is what the cython documentation uses for examples.
Should I squash the two commits into one? |
Yes, please do. |
numpy/random/mtrand/mtrand.pyx contains a line where cython fails to compile, complaining “Pythonic division not allowed without gil”. By running this code segment under cdivision(True), this problem is avoided.
9694ad5
to
4e276ac
Compare
@charris Done, I believe. |
OK, might as well put this in as it seems otherwise harmless. You might send an inquiry to the Cython folks. |
Thanks @gerritholl . |
numpy/random/mtrand/mtrand.pyx contains a line where cython fails to
compile, complaining “Pythonic division not allowed without gil”. By
running this code segment under cdivision(True), this problem is avoided.