Skip to content

Commit 70ddd3e

Browse files
[3.14] Remove outdated comment about excess_args warning in object.__init__ (GH-143669) (#143680)
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 4a33fe5 commit 70ddd3e

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
@@ -6736,12 +6736,6 @@ PyTypeObject PyType_Type = {
67366736
symmetrically, __new__() complains about excess arguments unless
67376737
__init__() is overridden and __new__() is not overridden
67386738
(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-
67456739
*/
67466740

67476741
/* Forward */

0 commit comments

Comments
 (0)