Skip to content

Commit 5a42a49

Browse files
bpo-45104: Clarify when __init__ is called (GH-28210) (GH-28213)
(cherry picked from commit fa15df7) Co-authored-by: Raymond Hettinger <[email protected]>
1 parent 8c3a10e commit 5a42a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/datamodel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ Basic customization
12001200
as necessary before returning it.
12011201

12021202
If :meth:`__new__` is invoked during object construction and it returns an
1203-
instance or subclass of *cls*, then the new instance’s :meth:`__init__` method
1203+
instance of *cls*, then the new instance’s :meth:`__init__` method
12041204
will be invoked like ``__init__(self[, ...])``, where *self* is the new instance
12051205
and the remaining arguments are the same as were passed to the object constructor.
12061206

0 commit comments

Comments
 (0)