This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients brandtbucher, jaraco, serhiy.storchaka
Date 2021-05-30.16:13:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622391231.33.0.264651463571.issue43413@roundup.psfhosted.org>
In-reply-to
Content
Surprisingly there were almost no tests for keyword arguments in subclasses.

PR 26456 makes checks for some classes (like tuple, list, frozenset) more strict: if subclass does not define __init__ or __new__, it will reject arbitrary keyword arguments.

It also makes the check in set.__init__() more lenient for uniformity with frozenset and list. Subclass of set can now define a __new__() method with additional keyword parameters without overriding also __init__().

Added tests for some of builtin classes.

Raymond, please take a look. It touches classes maintained tracked by you: set/frozenset, itertools, random.
History
Date User Action Args
2021-05-30 16:13:51serhiy.storchakasetrecipients: + serhiy.storchaka, jaraco, brandtbucher
2021-05-30 16:13:51serhiy.storchakasetmessageid: <1622391231.33.0.264651463571.issue43413@roundup.psfhosted.org>
2021-05-30 16:13:51serhiy.storchakalinkissue43413 messages
2021-05-30 16:13:51serhiy.storchakacreate