where are operators mapped to magic methods in python?

后端 未结 5 1053
無奈伤痛
無奈伤痛 2021-01-02 03:13

I\'ve been reading about magic methods in python, and I\'ve found a lot of info about overriding them and what purpose they serve, but I haven\'t been able to find where i

5条回答
  •  离开以前
    2021-01-02 03:28

    You may want to check out this portion of the documentation:

    http://docs.python.org/3/reference/datamodel.html#special-method-names

提交回复
热议问题