python: class override “is” behavior

前端 未结 4 1466
遇见更好的自我
遇见更好的自我 2020-11-27 22:30

I\'m writing a class which encapsulates any arbitrary object, including simple types. I want the \"is\" keyword to operate on the encapsulated value, such as this behavior:<

4条回答
提交回复
热议问题