]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Remove outdated comment about `excess_args` warning in `object.__init__` ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 11 Jan 2026 07:49:37 +0000 (08:49 +0100)
committerGitHub <noreply@github.com>
Sun, 11 Jan 2026 07:49:37 +0000 (07:49 +0000)
Remove outdated comment about `excess_args` warning in `object.__init__` (GH-143669)

The code emitting a warning was removed in 96384b93aae1d1e45dda21c4024d7d083c91626d.
(cherry picked from commit 03e6457096d452859fb4cfd418dc9268c6454c29)

Co-authored-by: Manuel Jacob <me@manueljacob.de>
Objects/typeobject.c

index 01f84ab508580e7ffd1b3c23dfa2b3e917b8c850..ded0f22b4e10c8e2152684fd3f5cf5c105f89971 100644 (file)
@@ -6101,12 +6101,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 */