Email RE: [Python-projects] Another bug in pylint?

from
to
Sylvain Thenault <syt at logilab dot fr>
subject
RE: [Python-projects] Another bug in pylint?
date
2004/11/03 09:27
Yes, I'm using version 0.5 and common 0.7
If you still cannot reproduce it, I will check it to see if there is
anything else that might be important... (or maybe you changed something
else and made it work...)

I also have one other doubt:

I have a construct, so that I don't declare my attributes in __init__, but
in the following way:

class C:
properties.create( attr0 = 0, attr1 = 1)

And this method creates a property for attr1 and for attr2. This is done at
runtime, so that when the class is imported, I have methods generated and
the properties created. This is very useful to me, as I do many other
'metaprogramming' tricks based on this, but I get tons of errors saying that
I acessed some variable that is not declared in the class using pylint. 

So, I would like to know: Is any chance I could get support for this?

Thanks,

Fabio Zadrozny
------------------------------------------------------
Software Developer
ESSS - Engineering Simulation and Scientific Software
www.esss.com.br


-----Original Message-----
From: Sylvain.Thenault@logilab.fr [mailto:Sylvain.Thenault@logilab.fr] 
Sent: terça-feira, 2 de novembro de 2004 10:50
To: Fabio Zadrozny
Cc: python-projects@logilab.org
Subject: Re: [Python-projects] Another bug in pylint?

On Tuesday 26 October à 10:46, Fabio Zadrozny wrote:
> Hy, trying to check the file attached, I got the error below.


> lint.py
> d:\dev_programs\eclipse_3\eclipse\runtime-workbench-workspace\test\tes
> t1.py

> No config file found, using default configuration
> ************* Module test.test1
> W0312:  6: Found indentation with spaces instead of tabs
> W0312: 10: Found indentation with spaces instead of tabs
> W0312: 11: Found indentation with spaces instead of tabs
> W0312: 13: Found indentation with spaces instead of tabs
> W0312: 14: Found indentation with spaces instead of tabs
> W0312: 15: Found indentation with spaces instead of tabs
> W0131:  0: Missing docstring
> W0103:  0: Missing required attribute "__revision__"
> Traceback (most recent call last):
>   File
> "D:\dev_programs\eclipse_3\eclipse\workspace\org.python.pydev\PySrc\Th
> irdPar ty\logilab\pylint\lint.py", line 962, in ?
>     Run(sys.argv[1:])
[snip]
>   File
> "D:\dev_programs\eclipse_3\eclipse\workspace\org.python.pydev\PySrc\Th
> irdPar 
> ty\logilab\pylint\../../../ThirdParty\logilab\pylint\checkers\format.p
> y",
> line 292, in visit_default
>     msg_def = check_line(self._lines[line], self)
> KeyError: 1

hum, I can't reproduce this problem. Which version of python and
logilab-common are you using ? (I suppose you're using the latest release of
pylint, 0.5)

-- 
Sylvain Thénault                               LOGILAB, Paris (France).

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


has reply