diff options
author | Petr Viktorin <encukou@gmail.com> | 2024-09-13 11:18:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-13 11:18:49 (GMT) |
commit | 432bf31327c6b9647acb8bdb0eac2d392fd9f60a (patch) | |
tree | df69d73f4e958d5bb84b7d032ae4c37a42e87d58 /Misc/NEWS.d/next | |
parent | d7e83398c188a0acd19a496ee2eeeeab52d64a11 (diff) | |
download | cpython-432bf31327c6b9647acb8bdb0eac2d392fd9f60a.zip cpython-432bf31327c6b9647acb8bdb0eac2d392fd9f60a.tar.gz cpython-432bf31327c6b9647acb8bdb0eac2d392fd9f60a.tar.bz2 |
gh-123909: PyType_From*: Disallow metaclasses with custom tp_new (GH-123947)
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r-- | Misc/NEWS.d/next/C_API/2024-09-10-16-54-27.gh-issue-123909.CTGxDR.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C_API/2024-09-10-16-54-27.gh-issue-123909.CTGxDR.rst b/Misc/NEWS.d/next/C_API/2024-09-10-16-54-27.gh-issue-123909.CTGxDR.rst new file mode 100644 index 0000000..b7a4913 --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2024-09-10-16-54-27.gh-issue-123909.CTGxDR.rst @@ -0,0 +1,3 @@ +:c:func:`PyType_FromSpec`, :c:func:`PyType_FromSpecWithBases` and +:c:func:`PyType_FromModuleAndSpec` will now fail if the metaclass of the new +type has custom :c:member:`~PyTypeObject.tp_new`. |