Skip to content

Commit eab71c5

Browse files
Apply suggestions from code review
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
1 parent 3b4f757 commit eab71c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/c-api/module.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Module Objects
9494
``'utf-8'``.
9595
9696
The returned buffer is only valid until the module is renamed or destroyed.
97-
Note that Python code may rename a module by setting its ``__name__``
97+
Note that Python code may rename a module by setting its :py:attr:`~module.__name__`
9898
attribute.
9999
100100
.. c:function:: void* PyModule_GetState(PyObject *module)
@@ -133,7 +133,7 @@ Module Objects
133133
Similar to :c:func:`PyModule_GetFilenameObject` but return the filename
134134
encoded to 'utf-8'.
135135
136-
The returned buffer is only valid until the module's ``__file__`` attribute
136+
The returned buffer is only valid until the module's :py:attr:`~module.__file__` attribute
137137
is reassigned or the module is destroyed.
138138
139139
.. deprecated:: 3.2

0 commit comments

Comments
 (0)