Why doc call `__init__` as a method rather than function?

Chris Angelico rosuav at gmail.com
Mon Sep 18 00:18:31 EDT 2023


On Mon, 18 Sept 2023 at 13:49, anthony.flury via Python-list
<python-list at python.org> wrote:
>
>
>
> To me __init__ is a method, but that is implemented internally as
> function associated to a class
>

What is a method, if it is not a function associated with a class?

ChrisA


More information about the Python-list mailing list