What is a 'slot wrapper' in python?

前端 未结 3 649
一生所求
一生所求 2021-02-05 06:46

object.__dict__ and other places have their hidden methods set to things like this:

 

        
3条回答
  •  执笔经年
    2021-02-05 07:40

    It's an internal type used for some callables, methods on built-in classes. It doesn't really matter why it is different than a function, or any other callable. You can invoke it as a method on the object just the same.

提交回复
热议问题