We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
excess_args
object.__init__
1 parent 4a33fe5 commit c4f5888Copy full SHA for c4f5888
1 file changed
Objects/typeobject.c
@@ -6736,12 +6736,6 @@ PyTypeObject PyType_Type = {
6736
symmetrically, __new__() complains about excess arguments unless
6737
__init__() is overridden and __new__() is not overridden
6738
(IOW, if __new__() is overridden or __init__() is not overridden).
6739
-
6740
- However, for backwards compatibility, this breaks too much code.
6741
- Therefore, in 2.6, we'll *warn* about excess arguments when both
6742
- methods are overridden; for all other cases we'll use the above
6743
- rules.
6744
6745
*/
6746
6747
/* Forward */
0 commit comments