mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
bpo-45104: Clarify when __init__ is called (GH-28210)
This commit is contained in:
parent
fb305092a5
commit
fa15df77f0
1 changed files with 1 additions and 1 deletions
|
|
@ -1272,7 +1272,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