Skip to content

Commit b2a2dcd

Browse files
[3.13] Remove outdated comment about excess_args warning in object.__init__ (GH-143669) (#143681)
Remove outdated comment about `excess_args` warning in `object.__init__` (GH-143669) The code emitting a warning was removed in 96384b9. (cherry picked from commit 03e6457) Co-authored-by: Manuel Jacob <me@manueljacob.de>
1 parent 3aa233e commit b2a2dcd

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Objects/typeobject.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6101,12 +6101,6 @@ PyTypeObject PyType_Type = {
61016101
symmetrically, __new__() complains about excess arguments unless
61026102
__init__() is overridden and __new__() is not overridden
61036103
(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-
61106104
*/
61116105

61126106
/* Forward */

0 commit comments

Comments
 (0)