[Numpy-discussion] Updating cython directory to pxd usage: objections?

Stéfan van der Walt stefan at sun.ac.za
Thu Jun 19 20:02:25 EDT 2008


2008/6/19 Fernando Perez <fperez.net at gmail.com>:
>> - import_array().  Can we put it at the bottom of c_numpy.pxd, so that
>> users don't have to import it every time?
>
> Sounds fine to me, but I don't know if there could be a subtle problem
> with pxds used by multiple pyx files.  I'm not comfortable enough with
> cython to answer the question.

>From what I understand, a .pxd file is loaded only once -- is that
correct?  Either way, I don't think executing import_array more than
once could hurt (or could it -- Robert?).

Regards
Stéfan



More information about the NumPy-Discussion mailing list