[Python-projects] Pylint 0.9.0 - Another E0611 false positive [maybe dynamic __all__]

Mirko Friedenhagen mirko.friedenhagen at webde.de
Tue Jan 10 17:25:09 CET 2006


Hello,

I am using:
{{{
[mifr at lxsuche01 mifr]$ pylint --version
pylint 0.9.0,
astng 0.14.0, common 0.13.0
Python 2.3.3 (#1, Sep 13 2004, 14:10:00)
[GCC 3.2 (SuSE Linux)]
}}}

We use some really weird `import` magic in some modules. Older versions 
(pylint 0.7.0, common 0.10.0) did not show the E0611, this started with
pylint 0.8.1, astng-0.13.1 and logilab-common 0.12.0.

I have attached a very stripped down example reproducing the behaviour.
Just unpack the tar.gz and run:
`python test.py`
and
`python test2.py`
which will hopefully show no problem.
However `pylint` will find an E0611 for both files.

This works as well:
{{{
[mifr at lxsuche01 pylint-e0611-error]$ python
Python 2.3.3 (#1, Sep 13 2004, 14:10:00)
[GCC 3.2 (SuSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import foobar
 >>> print foobar.Binary
<function Binary at 0x4047256c>
 >>> from foobar import Binary
 >>> print Binary
<function Binary at 0x4047256c>
}}}

Best regards
Mirko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pylint-e0611-error.tar.gz
Type: application/x-gunzip
Size: 1176 bytes
Desc: not available
URL: <http://lists.logilab.org/pipermail/python-projects/attachments/20060110/a0f6bcf0/attachment-0084.bin>


More information about the Python-Projects mailing list