Skip to content

Docs: Clarify that ctypes.pythonapi *may* be None under a statically linked interpreter - #158624

Open
ZeroIntensity wants to merge 1 commit into
python:mainfrom
ZeroIntensity:ctypes/adjust-statically-linked-docs
Open

ZeroIntensity wants to merge 1 commit into
python:mainfrom
ZeroIntensity:ctypes/adjust-statically-linked-docs

Conversation

@ZeroIntensity

Copy link
Copy Markdown
Member

@ZeroIntensity

Copy link
Copy Markdown
Member Author

I'll have to manually cherry-pick this into #158307 for 3.15.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34906805 | 📁 Comparing 85e5b8e against main (20d5e67)

  🔍 Preview build  

1 file changed
± library/ctypes.html

Comment thread Doc/library/ctypes.rst
``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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants