Warning: This document is for an old version of sdcflows. The main version is master.
Basic miscellaneous utilities.
sdcflows.utils.misc.
front
Pop from a list or tuple, otherwise return untouched.
Examples
>>> front([1, 0]) 1
>>> front("/path/somewhere") '/path/somewhere'
get_free_mem
Probe the free memory right now.
last
Return the last element from a list or tuple, otherwise return untouched.
>>> last([1, 0]) 0
>>> last("/path/somewhere") '/path/somewhere'