gh-93466: Document PyType_Spec doesn't accept repeated slot IDs; raise where this was problematic (GH-93471)

This commit is contained in:
Petr Viktorin 2022-06-10 15:55:09 +02:00 committed by GitHub
parent 3124d9a5aa
commit 21a9a85ff4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 84 additions and 2 deletions

View file

@ -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