#NEWLINE# def namedtuples( table , * sliceargs , **kwargs ) : #NEWLINE# #INDENT# "\n    View the table as a container of named tuples. E.g.::\n\n        >>> import petl as etl\n        >>> table = [['foo', 'bar'], ['a', 1], ['b', 2]]\n        >>> d = etl.namedtuples(table)\n        >>> d\n        row(foo='a', bar=1)\n        row(foo='b', bar=2)\n        >>> list(d)\n        [row(foo='a', bar=1), row(foo='b', bar=2)]\n\n    Short rows are padded with the value of the `missing` keyword argument.\n\n    The `name` keyword argument can be given to override the name of the\n    named tuple class (defaults to 'row').\n\n    " #NEWLINE# return NamedTuplesView ( table , * table , ** kwargs )