Skip to content

Commit ef70413

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

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
@@ -1237,7 +1237,7 @@ Basic customization
12371237
as necessary before returning it.
12381238

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

0 commit comments

Comments
 (0)