Message381542
It is common that class have a single base class. PyType_FromModuleAndSpec() is only called with NULL as bases (that means inheriting object) in the stdlib, and PyType_FromSpecWithBases() is called with a 1-tuple as bases all three times (not counting tests).
Since it is a common case, PyErr_NewException() accept both a tuple and a single class as the base argument. I propose to accept a single class also in PyType_FromSpecWithBases() and PyType_FromModuleAndSpec(). |
|
Date |
User |
Action |
Args |
2020-11-21 10:19:14 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, christian.heimes |
2020-11-21 10:19:14 | serhiy.storchaka | set | messageid: <1605953954.58.0.578836849321.issue42423@roundup.psfhosted.org> |
2020-11-21 10:19:14 | serhiy.storchaka | link | issue42423 messages |
2020-11-21 10:19:14 | serhiy.storchaka | create | |
|