foxes.utils.Dict.pop_item(key, *deflt, prnt=True)[source]

Pops an item, prints readable error if not found

Parameters

key: immutable object

The key

deflt: tuple, optional

Tuple of length 1, containing the default

prnt: bool

Flag for message printing

Returns

data: object

The data