mirror of https://github.com/python/cpython
bpo-45104: Clarify when __init__ is called (GH-28210)
This commit is contained in:
parent
fb305092a5
commit
fa15df77f0
|
@ -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…
Reference in New Issue