[Python-projects] Pylint fails to understand inheritance

Osmo Salomaa otsaloma at cc.hut.fi
Thu Nov 16 21:37:11 CET 2006


to, 2006-11-16 kello 19:39 +0100, Sylvain Thénault kirjoitti:
> huM. I've already seen similar problem in the past caused by
> "__module__" attribute of extension class not correctly positioned,
> which make fail ast construction for these extension class. Unfortunatly
> there isn't a lot of (not too dirty) things I can do against that. Just
> to check, what do you get when you type something similar as :
> 
> >>> import gtk
> >>> print gtk.Button.__module__
> gtk
> 
> If you get something else than "gtk", you should probably post a bug on
> the pygtk project. Else I'll have to investigate further...

Correct you are. It returns "gobject", which is the module, where the
base class of all widgets, GObject, is defined.

>>> import gtk
>>> print gtk.Button.__module__
gobject

I'll file that as a bug against pygtk.

Thanks for the swift help.

-- 
Osmo Salomaa



More information about the Python-Projects mailing list