https://github.com/python/cpython/commit/03e6457096d452859fb4cfd418dc9268c6454c29
commit: 03e6457096d452859fb4cfd418dc9268c6454c29
branch: main
author: Manuel Jacob <[email protected]>
committer: sobolevn <[email protected]>
date: 2026-01-11T10:27:11+03:00
summary:
Remove outdated comment about `excess_args` warning in `object.__init__`
(#143669)
The code emitting a warning was removed in
96384b93aae1d1e45dda21c4024d7d083c91626d.
files:
M Objects/typeobject.c
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 77e5c3e9f9ec95..54263fd603ed73 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -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 */
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]