summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-11-22 11:25:02 (GMT)
committerGitHub <noreply@github.com>2020-11-22 11:25:02 (GMT)
commit686c203cd4355be5b7809a9d24b4aa3566d9371f (patch)
tree457b1a741d4f70e85d2bea686cd9ffb822cd8a85 /Doc/whatsnew
parentc4d45ee670c09d4f6da709df072ec80cb7dfad22 (diff)
downloadcpython-686c203cd4355be5b7809a9d24b4aa3566d9371f.zip
cpython-686c203cd4355be5b7809a9d24b4aa3566d9371f.tar.gz
cpython-686c203cd4355be5b7809a9d24b4aa3566d9371f.tar.bz2
bpo-42423: Accept single base class in PyType_FromModuleAndSpec() (GH-23441)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.10.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index 16cb7ef..ce66b1d 100644
--- a/Doc/whatsnew/3.10.rst
+++ b/Doc/whatsnew/3.10.rst
@@ -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`.)