summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-09-07 16:26:35 (GMT)
committerGitHub <noreply@github.com>2021-09-07 16:26:35 (GMT)
commitef704137770b2e98da7880c828aaf921f0b45337 (patch)
treef72b472af39b7fcf53ffea80ef79bdf3cc5b80ca
parent8afab2ebbc1b343cd88d058914cf622fe687a2be (diff)
downloadcpython-ef704137770b2e98da7880c828aaf921f0b45337.zip
cpython-ef704137770b2e98da7880c828aaf921f0b45337.tar.gz
cpython-ef704137770b2e98da7880c828aaf921f0b45337.tar.bz2
bpo-45104: Clarify when __init__ is called (GH-28210)
(cherry picked from commit fa15df77f02ba4a66ba0b71989381a426038be01) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
-rw-r--r--Doc/reference/datamodel.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 477daae..7b54f44 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -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.