Skip to content

Commit

Permalink
bpo-45104: Clarify when __init__ is called (pythonGH-28210)
Browse files Browse the repository at this point in the history
(cherry picked from commit fa15df7)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
  • Loading branch information
rhettinger authored and miss-islington committed Sep 7, 2021
1 parent 8afab2e commit f470935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/reference/datamodel.rst
Expand Up @@ -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.

Expand Down

0 comments on commit f470935

Please sign in to comment.