pimlico.utils.core module

pimlico.utils.core.infinite_cycle(iterable)[source]
pimlico.utils.core.is_identifier(ident)[source]

Determines if string is valid Python identifier.

pimlico.utils.core.multiwith(*args, **kwds)[source]

Taken from contextlib’s nested(). We need the variable number of context managers that this function allows.

pimlico.utils.core.remove_duplicates(lst, key=<function <lambda>>)[source]

Remove duplicate values from a list, keeping just the first one, using a particular key function to compare them.