I am reading pandas source code. Encounter this file
These few lines confused me.
cimport numpy as np
import numpy as np
Sure if this is python, only the second import will be effective and np is pointing to numpy.
My doubts are
- In Cython, import with same alias, will the first import be valid?
- Likely it is valid import, then what's difference between cimport and import?
- As both import with same alias, how the program knows which module it refers to?