corpy.util
¶
Small utility functions.
-
corpy.util.
cmp
(lhs, rhs, test='__eq__')¶ Wrap assert statement to automatically raise an informative error.
-
corpy.util.
head
(collection, first_n=None)¶ Inspect collection, truncated if too long.
If
first_n=None
, an appropriate value is determined based on the type of the collection.