Message394768
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. |
|
Date |
User |
Action |
Args |
2021-05-30 16:13:51 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, jaraco, brandtbucher |
2021-05-30 16:13:51 | serhiy.storchaka | set | messageid: <1622391231.33.0.264651463571.issue43413@roundup.psfhosted.org> |
2021-05-30 16:13:51 | serhiy.storchaka | link | issue43413 messages |
2021-05-30 16:13:51 | serhiy.storchaka | create | |
|