Avatar ·

What values can be dictionary keys?

📁 Advanced Python Topics, Error

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

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