> 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 ?
Yes - next SIP snapshot (probably next weekend). I wasn't aware that the tp_name of static type objects and dynamic type objects need to be handled differently in Python 2.3 and later. Thanks, Phil _______________________________________________ PyKDE mailing list [email protected] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
