[issue1123716] descrintro describes __new__ and __init__ behavior wrong
Facundo Batista
report at bugs.python.org
Wed Feb 27 03:53:06 CET 2008
Facundo Batista added the comment:
Documentation had several updates in these 2+ years.
Now it says:
"""
If __new__() returns an instance of cls, then the new instance’s
__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 __new__().
If __new__() does not return an instance of cls, then the new instance’s
__init__() method will not be invoked.
"""
, which is clearer.
Thanks!
----------
nosy: +facundobatista
resolution: -> fixed
status: open -> closed
_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1123716>
_____________________________________
More information about the Python-bugs-list
mailing list