Where is the Python documentation for the special methods? (__init__, __new__, __len__, …)

前端 未结 9 1917
旧时难觅i
旧时难觅i 2020-12-08 02:00

Where is a complete list of the special double-underscore/dunder methods that can be used in classes? (e.g., __init__, __new__, __len__

9条回答
  •  孤城傲影
    2020-12-08 02:41

    Do this if you prefer reading documentation from a CLI instead of the browser.

    $ pydoc SPECIALMETHODS

提交回复
热议问题