summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2012-09-28 14:35:21 (GMT)
committerJesus Cea <jcea@jcea.es>2012-09-28 14:35:21 (GMT)
commit494502756eb7283631930c18ccaa6b137959d961 (patch)
tree4696199e45ece208e3666f6293354de38de8088e /Doc/extending
parentd5dc6e50ffc453bf6e8c49634d9dace88d73351c (diff)
parent33b5769db550b0e318f7b9fea097c6d1386d02ba (diff)
downloadcpython-494502756eb7283631930c18ccaa6b137959d961.zip
cpython-494502756eb7283631930c18ccaa6b137959d961.tar.gz
cpython-494502756eb7283631930c18ccaa6b137959d961.tar.bz2
MERGE: Closes #15953: Incorrect some fields declaration in the PyTypeObject documentation
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/newtypes.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
index b90d35c..376d09a 100644
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -1277,9 +1277,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