1

I am seeking a way to store (convert) my existing dict into a non mutable entity. Is there any python builtin I can use here?

If I were using a set, I could use a frozenset, and if in case if I was using a list, I could've converted it into a tuple, but there seems to be no such similar option for the dict.

Ultimately, I need to convert the dicts in to unmutable dicts, so that I can (possibly hash them and thus) store them in a set.

Anshul Goyal
  • 73,278
  • 37
  • 149
  • 186

0 Answers0