]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45104: Clarify when __init__ is called (GH-28210)
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Tue, 7 Sep 2021 16:04:39 +0000 (11:04 -0500)
committerGitHub <noreply@github.com>
Tue, 7 Sep 2021 16:04:39 +0000 (18:04 +0200)
Doc/reference/datamodel.rst

index 46d9c3a95473cf11209ec67459e8cebfbacd8267..bf3f5082fd5e0e800e0e749eeafced35bdcb9afb 100644 (file)
@@ -1272,7 +1272,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.