Package: pylint
Version: 1.3.1-2
Severity: normal

Dear Maintainer,

Any Python application using GTK or even just GObject yields E1101 false 
positives, thus making this particular check unusable.

Here is how to reproduce this error:

$ cat >e1101.py <<__EOF__
#! /usr/bin/env python

"""Test file for pylint's E1101 bug"""

print "Importing gobject"
import gobject

print "Calling threads_init"
gobject.threads_init()

print "Success!"
__EOF__
$ chmod +x ./e1101.py
$ ./e1101.py  # Proves that gobject.threads_init() exists
Importing gobject
Calling threads_init
Success!
$ pylint --msg-template='{msg_id}:{line:3d},{column}: {obj}: {msg}' e1101.py | 
grep gobject
No config file found, using default configuration
E1101:  9,0: : Module 'gobject' has no 'threads_init' member
    gobject (e1101)

Note that this bug is not present in pylint 0.25.1 (from Debian 7.6).

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages pylint depends on:
ii  python                 2.7.8-2
ii  python-astroid         1.2.1-3
ii  python-logilab-common  0.62.0-1
pn  python:any             <none>

Versions of packages pylint recommends:
ii  python-tk  2.7.8-2+b1

pylint suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to