Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Doc/library/ctypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1755,8 +1755,9 @@ These prefabricated library loaders are available:
:c:expr:`int`, which is of course not always the truth, so you have to assign
the correct :attr:`!restype` attribute to use these functions.

Note that if the Python interpreter is statically linked, this will be
``None``, as ``dlopen`` is not possible in this case.
.. note::

If the Python interpreter is statically linked, this may be ``None``.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine but if you'd like you could say that in practice musl will return None but glibc won't.


.. audit-event:: ctypes.dlopen name ctypes.LibraryLoader

Expand Down
Loading