[Python-checkins] bpo-45104: Clarify when __init__ is called (GH-28210)

miss-islington webhook-mailer at python.org
Tue Sep 7 12:26:43 EDT 2021


https://github.com/python/cpython/commit/ef704137770b2e98da7880c828aaf921f0b45337
commit: ef704137770b2e98da7880c828aaf921f0b45337
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-09-07T09:26:35-07:00
summary:

bpo-45104: Clarify when __init__ is called (GH-28210)

(cherry picked from commit fa15df77f02ba4a66ba0b71989381a426038be01)

Co-authored-by: Raymond Hettinger <rhettinger at users.noreply.github.com>

files:
M Doc/reference/datamodel.rst

diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 477daaed8d3b1..7b54f441b6a4a 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.
 



More information about the Python-checkins mailing list