bpo-42423: Accept single base class in PyType_FromModuleAndSpec() (GH-23441)

This commit is contained in:
Serhiy Storchaka 2020-11-22 13:25:02 +02:00 committed by GitHub
parent c4d45ee670
commit 686c203cd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 17 additions and 28 deletions

View file

@ -512,6 +512,10 @@ New Features
reference count of an object and return the object.
(Contributed by Victor Stinner in :issue:`42262`.)
* The :c:func:`PyType_FromSpecWithBases` and :c:func:`PyType_FromModuleAndSpec`
functions now accept a single class as the *bases* argument.
(Contributed by Serhiy Storchaka in :issue:`42423`.)
* The :c:func:`PyType_FromModuleAndSpec` function now accepts NULL ``tp_doc``
slot.
(Contributed by Hai Shi in :issue:`41832`.)