changeset: 79217:3bb53816f9c5 parent: 79214:f69dc59bfc53 parent: 79216:c87ea480ddf3 user: Jesus Cea date: Fri Sep 28 16:35:21 2012 +0200 files: Doc/extending/newtypes.rst description: MERGE: Closes #15953: Incorrect some fields declaration in the PyTypeObject documentation diff -r f69dc59bfc53 -r 3bb53816f9c5 Doc/extending/newtypes.rst --- a/Doc/extending/newtypes.rst Fri Sep 28 16:21:17 2012 +0200 +++ b/Doc/extending/newtypes.rst Fri Sep 28 16:35:21 2012 +0200 @@ -1277,9 +1277,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

AltStyle によって変換されたページ (->オリジナル) /