Skip to content

Commit 64b5b0e

Browse files
authored
Fix reference warnings caused by removal of __file__ from cpython docs (#1438)
1 parent e661e33 commit 64b5b0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

developer-workflow/extension-modules.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Extension modules can be classified into two categories:
3131

3232
* A *built-in* extension module is a module built and shipped with
3333
the Python interpreter. A built-in module is *statically* linked
34-
into the interpreter, thereby lacking a :attr:`__file__` attribute.
34+
into the interpreter, thereby lacking a :attr:`!__file__` attribute.
3535

3636
.. seealso:: :data:`sys.builtin_module_names` --- names of built-in modules.
3737

@@ -41,7 +41,7 @@ Extension modules can be classified into two categories:
4141
* A *shared* (or *dynamic*) extension module is built as a shared library
4242
(``.so`` or ``.dll`` file) and is *dynamically* linked into the interpreter.
4343

44-
In particular, the module's :attr:`__file__` attribute contains the path
44+
In particular, the module's :attr:`!__file__` attribute contains the path
4545
to the ``.so`` or ``.dll`` file.
4646

4747
Shared modules are built with the :c:macro:`!Py_BUILD_CORE_MODULE`

0 commit comments

Comments
 (0)