Skip to content

gh-157487: Add structured version info for ctypes - #157488

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:ctypes-version-info
Open

serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:ctypes-version-info

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Add constants ctypes.LIBFFI_VERSION, ctypes.libffi_version, ctypes.LIBFFI_VERSION_INFO and ctypes.libffi_version_info, which provide information about the version of the libffi library in use. They are only available with libffi 3.5 or later.

Tested with libffi 3.5.2 on Linux and with libffi 3.2.1 (no version API, so the constants are absent) on OpenIndiana.

Add constants ctypes.LIBFFI_VERSION, ctypes.libffi_version,
ctypes.LIBFFI_VERSION_INFO and ctypes.libffi_version_info, which
provide information about the version of the libffi library in use.
They are only available with libffi 3.5 or later.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34548059 | 📁 Comparing 0d566a8 against main (b62380f)

  🔍 Preview build  

3 files changed
± library/ctypes.html
± whatsnew/3.16.html
± whatsnew/changelog.html

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant