Author serhiy.storchaka
Recipients christian.heimes, serhiy.storchaka
Date 2020-11-21.10:19:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605953954.58.0.578836849321.issue42423@roundup.psfhosted.org>
In-reply-to
Content
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().
History
Date User Action Args
2020-11-21 10:19:14serhiy.storchakasetrecipients: + serhiy.storchaka, christian.heimes
2020-11-21 10:19:14serhiy.storchakasetmessageid: <1605953954.58.0.578836849321.issue42423@roundup.psfhosted.org>
2020-11-21 10:19:14serhiy.storchakalinkissue42423 messages
2020-11-21 10:19:14serhiy.storchakacreate