mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
bpo-45104: Clarify when __init__ is called (GH-28210) (GH-28212)
(cherry picked from commit fa15df77f0)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
This commit is contained in:
parent
9ad2184d67
commit
b1f2fe777e
1 changed files with 1 additions and 1 deletions
|
|
@ -1205,7 +1205,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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue