mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Closes #15953: Incorrect some fields declaration in the PyTypeObject documentation
This commit is contained in:
parent
fd448daf77
commit
33b5769db5
1 changed files with 3 additions and 3 deletions
|
|
@ -1299,9 +1299,9 @@ that the slots are present and should be checked by the interpreter. (The flag
|
|||
bit does not indicate that the slot values are non-*NULL*. The flag may be set
|
||||
to indicate the presence of a slot, but a slot may still be unfilled.) ::
|
||||
|
||||
PyNumberMethods tp_as_number;
|
||||
PySequenceMethods tp_as_sequence;
|
||||
PyMappingMethods tp_as_mapping;
|
||||
PyNumberMethods *tp_as_number;
|
||||
PySequenceMethods *tp_as_sequence;
|
||||
PyMappingMethods *tp_as_mapping;
|
||||
|
||||
If you wish your object to be able to act like a number, a sequence, or a
|
||||
mapping object, then you place the address of a structure that implements the C
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue