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]
Ciao, Jürgen
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects