sequence - Sequence related utilities

Utility functions that deal with non-string sequences.

make_tuple(arg)[source]

An alternate way of creating tuples from a single argument.

A single string argument is turned into a single element tuple and a dictionary argument is turned into a tuple of its items. Otherwise it works like the standard tuple constructor.