[Python-checkins] cpython (3.2): Closes #15953: Incorrect some fields declaration in the PyTypeObject

jesus.cea python-checkins at python.org
Fri Sep 28 16:35:41 CEST 2012


http://hg.python.org/cpython/rev/c87ea480ddf3
changeset:   79216:c87ea480ddf3
branch:      3.2
parent:      79211:6c96878eb729
user:        Jesus Cea <jcea at jcea.es>
date:        Fri Sep 28 16:34:45 2012 +0200
summary:
  Closes #15953: Incorrect some fields declaration in the PyTypeObject documentation

files:
  Doc/extending/newtypes.rst |  6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -1299,9 +1299,9 @@
 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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list