Skip to content

[3.13] gh-143304: Fix ctypes.CDLL to honor handle parameter on POSIX systems (GH-143318)#145173

Merged
encukou merged 4 commits intopython:3.13from
miss-islington:backport-27ded24-3.13
Mar 5, 2026
Merged

[3.13] gh-143304: Fix ctypes.CDLL to honor handle parameter on POSIX systems (GH-143318)#145173
encukou merged 4 commits intopython:3.13from
miss-islington:backport-27ded24-3.13

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Feb 24, 2026

The handle parameter was being ignored in the POSIX implementation
of CDLL._load_library(), causing it to always call _dlopen() even
when a valid handle was provided. This was a regression introduced
in recent refactoring.
(cherry picked from commit 27ded24)

Co-authored-by: Arjit Singh Grover 143692910+Koolvansh07@users.noreply.github.com

…ystems (pythonGH-143318)

The handle parameter was being ignored in the POSIX implementation
of CDLL._load_library(), causing it to always call _dlopen() even
when a valid handle was provided. This was a regression introduced
in recent refactoring.
(cherry picked from commit 27ded243485670fa836c9bb421e37a6ef16eca8e)

Co-authored-by: Arjit Singh Grover <143692910+Koolvansh07@users.noreply.github.com>
@python-cla-bot
Copy link

python-cla-bot bot commented Feb 24, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@encukou encukou merged commit 8fab30e into python:3.13 Mar 5, 2026
42 checks passed
@miss-islington miss-islington deleted the backport-27ded24-3.13 branch March 5, 2026 14:34
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.

4 participants