• da-woods's avatar
    Drop unused code-paths associated with "if cython.compiled" early (GH-3507) · 66e47e8d
    da-woods authored
    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.
    66e47e8d
cython_compiled_folding.py 673 Bytes