Files
openide/python/testData/completion/passedNamedTupleAttributes.py
Semyon Proshev 2e2de9e48c PY-5833 Fixed: No namedtuple autocompletion if field names passed in
Try to resolve fieldNamesExpression if it is a reference
2016-02-15 19:01:21 +03:00

5 lines
127 B
Python

from collections import namedtuple
foofields = 'bar', 'xyzzy'
nt = namedtuple('foo', foofields)
o = nt(1, 2)
print o.xyz<caret>