Home | History | Annotate | Download | only in Lib

Lines Matching defs:namedtuple

5 * namedtuple   factory function for creating tuple subclasses with named fields
13 __all__ = ['Counter', 'deque', 'defaultdict', 'namedtuple', 'OrderedDict']
248 ### namedtuple
305 def namedtuple(typename, field_names, verbose=False, rename=False):
308 >>> Point = namedtuple('Point', ['x', 'y'])
712 Point = namedtuple('Point', 'x, y', True)
717 class Point(namedtuple('Point', 'x y')):
728 class Point(namedtuple('Point', 'x y')):
737 Point3D = namedtuple('Point3D', Point._fields + ('z',))
741 TestResults = namedtuple('TestResults', 'failed attempted')