diff options
Diffstat (limited to 'Doc/extending')
-rw-r--r-- | Doc/extending/building.rst | 2 | ||||
-rw-r--r-- | Doc/extending/newtypes.rst | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/extending/building.rst b/Doc/extending/building.rst index 69dffbd..5381707 100644 --- a/Doc/extending/building.rst +++ b/Doc/extending/building.rst @@ -17,7 +17,7 @@ The initialization function has the signature: .. c:function:: PyObject* PyInit_modulename(void) -It returns either a fully-initialized module, or a :c:type:`PyModuleDef` +It returns either a fully initialized module, or a :c:type:`PyModuleDef` instance. See :ref:`initializing-modules` for details. .. highlight:: python diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst index f75bee9..c7c434e 100644 --- a/Doc/extending/newtypes.rst +++ b/Doc/extending/newtypes.rst @@ -175,7 +175,7 @@ example:: } If no :c:member:`~PyTypeObject.tp_repr` handler is specified, the interpreter will supply a -representation that uses the type's :c:member:`~PyTypeObject.tp_name` and a uniquely-identifying +representation that uses the type's :c:member:`~PyTypeObject.tp_name` and a uniquely identifying value for the object. The :c:member:`~PyTypeObject.tp_str` handler is to :func:`str` what the :c:member:`~PyTypeObject.tp_repr` handler @@ -589,7 +589,7 @@ with the required field:: PyObject *weakreflist; /* List of weak references */ } TrivialObject; -And the corresponding member in the statically-declared type object:: +And the corresponding member in the statically declared type object:: static PyTypeObject TrivialType = { PyVarObject_HEAD_INIT(NULL, 0) |