From: Stefan v. d. W. <st...@su...> - 2006-11-06 21:25:42
|
On Mon, Nov 06, 2006 at 02:09:32PM -0600, John Hunter wrote: >=20 > A simple import of numpy with the latest svn triggers a ctypes warning >=20 > 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 " > =20 >=20 > 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. Soon, we can remove the warning, but for now I think it should remain -- the bugs resulting from using older versions of ctypes are fairly hard to track down. Regards St=E9fan |