eta.util.general.to_key

to_key(lst)[source]

Convert a list to a valid dict key consisting of only tuples and strings.