Drop unused code-paths associated with "if cython.compiled" early (GH-3507)
This allows things to work like: # in pxd file from libc.math cimport sin # in py file if not cython.compiled: from math import sin # previously failed with cython compile # error because it was assigning to a cdef name This seems worthwhile because it makes it easier to write code that re-assigns cdef names and so works in both modes.
Showing
Please register or sign in to comment