pylint #21026 type inference error [resolved]

much probably an astng error.

From: Jürgen Hermann <Juergen.Hermann@1und1.de>

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)
prioritynormal
typebug
done in0.20.0
load1.000
load left0.000
closed by<not specified>