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 3aa233e commit 4067860Copy full SHA for 4067860
1 file changed
Objects/typeobject.c
@@ -6101,12 +6101,6 @@ PyTypeObject PyType_Type = {
6101
symmetrically, __new__() complains about excess arguments unless
6102
__init__() is overridden and __new__() is not overridden
6103
(IOW, if __new__() is overridden or __init__() is not overridden).
6104
-
6105
- However, for backwards compatibility, this breaks too much code.
6106
- Therefore, in 2.6, we'll *warn* about excess arguments when both
6107
- methods are overridden; for all other cases we'll use the above
6108
- rules.
6109
6110
*/
6111
6112
/* Forward */
0 commit comments