Thanks to visit codestin.com Credit goes to github.com
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 75d73c3 commit 03e6457Copy full SHA for 03e6457
1 file changed
Objects/typeobject.c
@@ -7128,12 +7128,6 @@ PyTypeObject PyType_Type = {
7128
symmetrically, __new__() complains about excess arguments unless
7129
__init__() is overridden and __new__() is not overridden
7130
(IOW, if __new__() is overridden or __init__() is not overridden).
7131
-
7132
- However, for backwards compatibility, this breaks too much code.
7133
- Therefore, in 2.6, we'll *warn* about excess arguments when both
7134
- methods are overridden; for all other cases we'll use the above
7135
- rules.
7136
7137
*/
7138
7139
/* Forward */
0 commit comments