File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1166,10 +1166,10 @@ Basic customization
1166
1166
with appropriate arguments and then modifying the newly-created instance
1167
1167
as necessary before returning it.
1168
1168
1169
- If :meth: `__new__ ` returns an instance of * cls *, then the new instance's
1170
- :meth: ` __init__ ` method will be invoked like `` __init__(self[, ...]) ``, where
1171
- * self * is the new instance and the remaining arguments are the same as were
1172
- passed to :meth: ` __new__ ` .
1169
+ If :meth: `__new__ ` is invoked during object construction and it returns an
1170
+ instance or subclass of * cls *, then the new instance’s :meth: ` __init__ ` method
1171
+ will be invoked like `` __init__(self[, ...]) ``, where * self * is the new instance
1172
+ and the remaining arguments are the same as were passed to the object constructor .
1173
1173
1174
1174
If :meth: `__new__ ` does not return an instance of *cls *, then the new instance's
1175
1175
:meth: `__init__ ` method will not be invoked.
You can’t perform that action at this time.
0 commit comments