From: Thomas H. <tho...@io...> - 2002-04-25 06:51:30
|
From: "Neal Norwitz" <nno...@ya...> > --- Thomas Heller <tho...@io...> wrote: > > pychecker 0.8.10 on this code: > > > > def x(obj): > > k = type(obj) > > return k.__name__ > > > > prints: > > > > c:\ctypes\test1.py:3: Object (k) has no attribute (__name__) > > Processing test1... > > > > A bug? > > This is a problem in 2.2 apparently, all other versions of python seem to work. > > I'll take a look. > > Neal > Other 2.2 problems: class c_int(Structure): __slots__ = [] Warnings... C:\ctypes\ctypes.py:60: __slots__ are empty in c_int Are empty slots something to warn about? Thomas |