[Python-projects] list of false negatives

Simon Schampijer simon at schampijer.de
Sat Mar 22 14:56:08 CET 2008


Hi Sylvain,

Johan Dahlin has provided a patch for pygobject that sets the 
GObject.__module__ properly to gobject._gobject. Pylint still fails with 
the false errors. What other data does the astng relies on?

If you want to contribute directly to the discussion: 
http://bugzilla.gnome.org/show_bug.cgi?id=523821

Thanks,
    Simon

Simon Schampijer wrote:
> Sylvain Thénault wrote:
>> On Thu, Feb 14, 2008 at 12:30:38PM +0100, Simon Schampijer wrote:
>>> Hi,
>>>
>>> I try to use pylint in an project where we use gobject, gtk and dbus. 
>>> Below I have a list of false negatives I found. Regarding gtk I found 
>>> this pointer 
>>> (http://lists.logilab.org/pipermail/python-projects/2006-November/001007.html), 
>>> but could not find something about the gobject issue. Maybe someone 
>>> can comment or provide me with pointers I can look at, thanks.
>>
>> i think this is due to a known pb with the way astng is built from
>> living object (which is necessary when object is coming from C code):
>> if object's __module__ attribute isn't equivalent to the actual (python)
>> name of the compiled module, it's missing an important part of available
>> information. E.g. since :
>>
>>>>> GObject.__module__
>> 'gobject'
>>
>> while GObject is actually defined in gobject._gobject, and the same
>> problem occurs much probably on other objects.
>> The simpliest way to fix this is to report a bug on the pygtk tracker.
>>
> 
> After asking on irc for a few times with no result I finally reported on 
> the pygobject bug tracker:
> 
> http://bugzilla.gnome.org/show_bug.cgi?id=523821
> 
> Best,
>    Simon
> 



More information about the Python-Projects mailing list