summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2022-06-10 13:55:09 (GMT)
committerGitHub <noreply@github.com>2022-06-10 13:55:09 (GMT)
commit21a9a85ff4d62e8fc5a51b8eb56154f32c319b77 (patch)
treecb04c35fb6d1fde8fbe975dee5bf7b0da4168f3a /Doc/c-api
parent3124d9a5aafb64431aa9facd0ae0e12201be77fa (diff)
downloadcpython-21a9a85ff4d62e8fc5a51b8eb56154f32c319b77.zip
cpython-21a9a85ff4d62e8fc5a51b8eb56154f32c319b77.tar.gz
cpython-21a9a85ff4d62e8fc5a51b8eb56154f32c319b77.tar.bz2
gh-93466: Document PyType_Spec doesn't accept repeated slot IDs; raise where this was problematic (GH-93471)
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/type.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst
index fece3e6..aa77c28 100644
--- a/Doc/c-api/type.rst
+++ b/Doc/c-api/type.rst
@@ -296,6 +296,8 @@ The following functions and structs are used to create
Array of :c:type:`PyType_Slot` structures.
Terminated by the special slot value ``{0, NULL}``.
+ Each slot ID should be specified at most once.
+
.. c:type:: PyType_Slot
Structure defining optional functionality of a type, containing a slot ID