summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-07-08 09:19:38 (GMT)
committerGitHub <noreply@github.com>2020-07-08 09:19:38 (GMT)
commita0a6f1167834c87f12e2eca11dd77143103e7691 (patch)
treeec5bffb279428b369b0ce55ea763cbe837d2e5df /Misc
parent1d1c5743400bdf384ec83eb6ba5b39a355d121e3 (diff)
downloadcpython-a0a6f1167834c87f12e2eca11dd77143103e7691.zip
cpython-a0a6f1167834c87f12e2eca11dd77143103e7691.tar.gz
cpython-a0a6f1167834c87f12e2eca11dd77143103e7691.tar.bz2
Revert "bpo-40170: PyType_HasFeature() now always calls PyType_GetFlags() (GH-19378)" (GH-21390)
This partially reverts commit 45ec5b99aefa54552947049086e87ec01bc2fc9a. (cherry picked from commit b26a0db8ea2de3a8a8e4b40e69fc8642c7d7cb68) Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2020-07-08-10-14-52.bpo-40170.N6Qx1i.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2020-07-08-10-14-52.bpo-40170.N6Qx1i.rst b/Misc/NEWS.d/next/C API/2020-07-08-10-14-52.bpo-40170.N6Qx1i.rst
new file mode 100644
index 0000000..760a3ff
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2020-07-08-10-14-52.bpo-40170.N6Qx1i.rst
@@ -0,0 +1,4 @@
+Revert :c:func:`PyType_HasFeature` change: it reads again directly the
+:c:member:`PyTypeObject.tp_flags` member when the limited C API is not used,
+rather than always calling :c:func:`PyType_GetFlags` which hides implementation
+details.