Skip to content

[_ctypes] Add dllist() - #16143

Merged
srittau merged 2 commits into
python:mainfrom
srittau:py3.15rc1
Aug 5, 2026
Merged

[_ctypes] Add dllist()#16143
srittau merged 2 commits into
python:mainfrom
srittau:py3.15rc1

Conversation

@srittau

@srittau srittau commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Added in 3.15rc1. Fixes CI (e.g. here).

Comment thread stdlib/_ctypes.pyi
def call_cdeclfunction(address: int, arguments: tuple[Any, ...], /) -> Any: ...
def call_function(address: int, arguments: tuple[Any, ...], /) -> Any: ...

if sys.version_info >= (3, 15) and sys.platform != "win32" and sys.platform != "darwin":

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I didn't use == "linux" here, since it's explicitly not available on Windows and MacOS, but available on non-Linux platforms (e.g. NetBSD) (source link).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is it worth adding a comment that includes that source link?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

A comment can't hurt, but I'm not sure whether the source link (which will change between versions anyway and is in danger of becoming outdated) is worth it.

@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(I only have MacOS so can't verify the return type)

@srittau
srittau merged commit 131d615 into python:main Aug 5, 2026
73 checks passed
@srittau
srittau deleted the py3.15rc1 branch August 5, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants