optunity.util module

optunity.util.DocumentedNamedTuple(docstring, *ntargs)[source]

Factory function to construct collections.namedtuple with a docstring. Useful to attach meta-information to data structures.

Inspired by http://stackoverflow.com/a/1606478

Table Of Contents

This Page