From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 7 Sep 2021 16:27:28 +0000 (-0700) Subject: bpo-45104: Clarify when __init__ is called (GH-28210) (GH-28212) X-Git-Tag: v3.9.8~187 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b1f2fe777e1fe133d33cd1e714b8aa0f81fed1cc;p=thirdparty%2FPython%2Fcpython.git bpo-45104: Clarify when __init__ is called (GH-28210) (GH-28212) (cherry picked from commit fa15df77f02ba4a66ba0b71989381a426038be01) Co-authored-by: Raymond Hettinger --- diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 403012307004..47fbcacad5f9 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1205,7 +1205,7 @@ Basic customization as necessary before returning it. If :meth:`__new__` is invoked during object construction and it returns an - instance or subclass of *cls*, then the new instance’s :meth:`__init__` method + instance of *cls*, then the new instance’s :meth:`__init__` method will be invoked like ``__init__(self[, ...])``, where *self* is the new instance and the remaining arguments are the same as were passed to the object constructor.