]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45104: Clarify when __init__ is called (GH-28210)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Sep 2021 16:26:35 +0000 (09:26 -0700)
committerGitHub <noreply@github.com>
Tue, 7 Sep 2021 16:26:35 +0000 (09:26 -0700)
(cherry picked from commit fa15df77f02ba4a66ba0b71989381a426038be01)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Doc/reference/datamodel.rst

index 477daaed8d3b1f884d2330afa08b0d3d2a2d7fb6..7b54f441b6a4a0442b5eb3a453a97d5d4041c565 100644 (file)
@@ -1237,7 +1237,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.