Hi Jürgen,

On 23 février 18:30, Jürgen Hermann wrote:
> OK, here's a strange mixup... (intermediary fix: change "i.startswith" to 
> "str(i).startswith")
> 
> $ pylint -rn bad.py 
> No config file found, using default configuration
> ************* Module bad
> ...
> C:  3:bad: Invalid name "s" (should match [a-z_][a-z0-9_]{2,30}$)
> E:  3:bad: Instance of 'set' has no 'startswith' member
> 
> $ python bad.py 
> set(['barfoo'])
> 
> $ cat bad.py 
> def bad():
>     s = set(["barfoo", "foobar"])
>     s -= set(i for i in s if i.startswith("foo"))
>     print s
> 
> if __name__ == "__main__":
>     bad()
> 
> $ pylint --version
> pylint 0.18.1, 
> astng 0.19.3, common 0.47.0
> Python 2.5.4 (r254:67916, Jan 20 2010, 21:44:03) 
> [GCC 4.3.3]

nice one :)
I've filed a ticket: http://www.logilab.org/ticket/21026

thank you for your report
-- 
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org

_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to