tacco.utils.find_unused_key

find_unused_key(dict_like, start='unused')[source]

Finds an unused key.

Parameters:
  • dict_like – A dict-like or a list/tuple of dict-likes to find a key which is unused in all of them.

  • start – The keys “<start><N>” are checked for increasing N until an unused key is found.

Returns:

The unused key.