GNOME Bugzilla – Bug 376099
All your classes are belong to gobject
Last modified: 2006-11-18 15:15:18 UTC
Please describe the problem: The __module__ attribute of all gtk widgets seems to "gobject" instead of "gtk". Same for pango and all them others. >>> import gtk >>> gtk.Button.__module__ 'gobject' >>> pango.Layout.__module__ 'gobject' This makes code checking with pylint rather difficult due to all the false positives caused by the base class not being properly recognized [1]. Quoting pylint developer Sylvain Thénault's explanation [2]: "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." [1] http://lists.logilab.org/pipermail/python-projects/2006-November/000978.html [2] http://lists.logilab.org/pipermail/python-projects/2006-November/001007.html Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Fixed in CVS: Checking in ChangeLog; /cvs/gnome/pygobject/ChangeLog,v <-- ChangeLog new revision: 1.114; previous revision: 1.113 done Checking in gobject/pygobject.c; /cvs/gnome/pygobject/gobject/pygobject.c,v <-- pygobject.c new revision: 1.76; previous revision: 1.75 done I still can't get pylint 0.8.1 work with the gtk module though.