|
From: Francesc A. <fa...@ca...> - 2006-01-19 10:00:46
|
A Dijous 19 Gener 2006 06:03, Sasha va escriure: > +1 > > I suggest a little more descriptive exception: > > PyErr_Format(PyExc_ImportError, > "extension module compiled against version %X of num= py > API" ", not %X", NDARRAY_VERSION, PyArray_GetNDArrayCVersion()) I also like this idea. I'd go a step further and add to the above message something like this: "...Nertheless, if you know what are you doing and want to allow this extension to run, set the environment variable FORCE_NUMPY_RUN to 1 (will continue warning you) or 2 (skip all warnings)." Of course, one should provide some code to check the environment variable, but this should be not very difficult. Cheers, =2D-=20 >0,0< Francesc Altet =A0 =A0 http://www.carabos.com/ V V C=E1rabos Coop. V. =A0=A0Enjoy Data "-" |