From: Andrew S. <str...@as...> - 2006-11-07 04:50:01
|
Stefan van der Walt wrote: > On Mon, Nov 06, 2006 at 02:09:32PM -0600, John Hunter wrote: > >> A simple import of numpy with the latest svn triggers a ctypes warning >> >> In [1]: import numpy >> /usr/lib/python2.4/site-packages/numpy/ctypeslib.py:12: UserWarning: >> All features of ctypes interface may not work with ctypes < 1.0.1 >> warnings.warn("All features of ctypes interface may not work with " >> >> >> This is a bit of an annoyance. Even if the warning level is >> configurable, I think the bulk of matplotlib users, who get the >> warning when using numpy through mpl but make no use of ctypes, will >> be confused by this. Is it right and good that this message gets >> triggered by default for any import of numpy, even those not using the >> ctypes features? >> > > I moved the warning to inside ctypeslib.load_library. I think most > people using ctypes in numpy come via that route. I don't come in via that route. How hard is it to trigger on a getattr() for the .ctypes attribute? |