[PyKDE] problem with AClass.__module__ in pyqt

Sylvain Thénault Sylvain.Thenault at logilab.fr
Wed Jan 5 16:46:29 GMT 2005


Hi there !

I'm the author of pylint and while investigating why pyqt classes
weren't correctly detected by pylint, I've found that is was due to the
fact that on qt classes, the __module__ attribute is set to the module
which has imported qt... This is annoying since to fix it I've to add
some special code to handle qt modules. I've not found any place to
report bugs for pyqt, so I'm talking about it here.

Another problem is that the __name__ attribute of those class include
the module name while it should only contains the class name.

>>> import qt
>>> qt.QWidget.__module__
'__main__'    # should be 'qt'
>>> qt.QWidget.__name__
'qt.QWidget'  # should be 'QWidget'

I'm using pyqt 3.12 with qt 3.3.3.

Could I expect to get those problems corrected at some point ?

Thanks

PS: please cc me for any response since I'm not registered to this
mailing list
-- 
Sylvain Thénault                               LOGILAB, Paris (France).

http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org




More information about the PyQt mailing list