Returns an automatic namedtuple object. Args: classname - The class name for the returned object. **kwargs - Properties to give the returned object.
(classname='auto_namedtuple', **kwargs)
| 4 | |
| 5 | |
| 6 | def auto_namedtuple(classname='auto_namedtuple', **kwargs): |
| 7 | """Returns an automatic namedtuple object. |
| 8 | |
| 9 | Args: |
| 10 | classname - The class name for the returned object. |
| 11 | **kwargs - Properties to give the returned object. |
| 12 | """ |
| 13 | return (collections.namedtuple(classname, kwargs.keys())(**kwargs)) |
no outgoing calls