In Python, can an object become hashable after it is created?

前端 未结 0 1293
生来不讨喜
生来不讨喜 2021-02-13 23:31

I want to create recursive data structures via a class Wrapper, and I want to be able to do something like this:

A = Wrapper()

A.assign_value((A, 5))

my_set = s         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题