]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-143304: Fix ctypes.CDLL to honor handle parameter on POSIX systems (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 5 Mar 2026 14:34:49 +0000 (15:34 +0100)
committerGitHub <noreply@github.com>
Thu, 5 Mar 2026 14:34:49 +0000 (15:34 +0100)
commit8fab30ed1125f020f3a050c1a055d3ffcd816811
tree58ef322b5a8ccdee8a08032d6d6c13bc89f32dc3
parent482d6f8bdba9da3725d272e8bb4a2d25fb6a603e
[3.13] gh-143304: Fix ctypes.CDLL to honor handle parameter on POSIX systems (GH-143318) (GH-145173)

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>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Lib/ctypes/__init__.py
Lib/test/test_ctypes/test_loading.py
Misc/NEWS.d/next/Library/2026-01-01-05-26-00.gh-issue-143304.Kv7x9Q.rst [new file with mode: 0644]