]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove outdated comment about `excess_args` warning in `object.__init__` (#143669)
authorManuel Jacob <me@manueljacob.de>
Sun, 11 Jan 2026 07:27:11 +0000 (08:27 +0100)
committerGitHub <noreply@github.com>
Sun, 11 Jan 2026 07:27:11 +0000 (10:27 +0300)
The code emitting a warning was removed in 96384b93aae1d1e45dda21c4024d7d083c91626d.

Objects/typeobject.c

index 77e5c3e9f9ec958557111f74145df6017ea9a463..54263fd603ed733441fda7460546b14abd969318 100644 (file)
@@ -7128,12 +7128,6 @@ PyTypeObject PyType_Type = {
    symmetrically, __new__() complains about excess arguments unless
    __init__() is overridden and __new__() is not overridden
    (IOW, if __new__() is overridden or __init__() is not overridden).
-
-   However, for backwards compatibility, this breaks too much code.
-   Therefore, in 2.6, we'll *warn* about excess arguments when both
-   methods are overridden; for all other cases we'll use the above
-   rules.
-
 */
 
 /* Forward */