pylint-bot / test

0 stars 0 forks source link

Support namedtuple's getitem #182

Open pylint-bot opened 9 years ago

pylint-bot commented 9 years ago

Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?)


We should detect namedtuple's indexing, as it is the case for this example:

#!python

from collections import namedtuple
f = namedtuple('a', 'a b')
c = f(1, 2)
print(c[0].lala)