]> granicus.if.org Git - python/commitdiff
Closes #15953: Incorrect some fields declaration in the PyTypeObject documentation
authorJesus Cea <jcea@jcea.es>
Fri, 28 Sep 2012 14:34:45 +0000 (16:34 +0200)
committerJesus Cea <jcea@jcea.es>
Fri, 28 Sep 2012 14:34:45 +0000 (16:34 +0200)
Doc/extending/newtypes.rst

index 8f1825383eca3772f564800f95293e2be2c4d569..3001415188b9e43e43cf2a2224c34e23a7cbdec5 100644 (file)
@@ -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