1 2 3 4 5 6 7 8 9 10
"""Test namedtuple attributes. Regression test for: https://bitbucket.org/logilab/pylint/issue/93/pylint-crashes-on-namedtuple-attribute """ __revision__ = None from collections import namedtuple Thing = namedtuple('Thing', ()) print Thing.x