Avatar ·

What values ​​can be dictionary keys?

📁 python, ошибка

The documentation says that only unchanged data types can be keys. Why in this case there is no error?

   class   test :   pass  t = test ()   print  ({t:  1 })