diff options
author | Jesus Cea <jcea@jcea.es> | 2012-09-28 14:33:38 (GMT) |
---|---|---|
committer | Jesus Cea <jcea@jcea.es> | 2012-09-28 14:33:38 (GMT) |
commit | 9662b849135b8812a03536f2c6ea0021fb504a26 (patch) | |
tree | f735fd7700fb58eb01f7811eabca8f1a78ebf891 | |
parent | 0c68c5ddb2fc447f13fc25871dea9eb6e444c982 (diff) | |
download | cpython-9662b849135b8812a03536f2c6ea0021fb504a26.zip cpython-9662b849135b8812a03536f2c6ea0021fb504a26.tar.gz cpython-9662b849135b8812a03536f2c6ea0021fb504a26.tar.bz2 |
Closes #15953: Incorrect some fields declaration in the PyTypeObject documentation
-rw-r--r-- | Doc/extending/newtypes.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst index 5c594e8..269c8fd 100644 --- a/Doc/extending/newtypes.rst +++ b/Doc/extending/newtypes.rst @@ -1360,9 +1360,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 |