After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 376099 - All your classes are belong to gobject
All your classes are belong to gobject
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: general
2.10.x
Other All
: Normal minor
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2006-11-16 21:01 UTC by Osmo Salomaa
Modified: 2006-11-18 15:15 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Osmo Salomaa 2006-11-16 21:01:48 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:
Comment 1 Johan (not receiving bugmail) Dahlin 2006-11-18 15:15:18 UTC
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.