]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-143304: Fix ctypes.CDLL to honor handle parameter on POSIX systems (GH-143318)
authorArjit Singh Grover <143692910+Koolvansh07@users.noreply.github.com>
Tue, 24 Feb 2026 12:16:58 +0000 (17:46 +0530)
committerGitHub <noreply@github.com>
Tue, 24 Feb 2026 12:16:58 +0000 (13:16 +0100)
commit27ded243485670fa836c9bb421e37a6ef16eca8e
tree1f19d9ac0342744bc8163191bd08705d0357a037
parentd6a71f4690c702892644b1fbae90ae9ef733a8ab
gh-143304: Fix ctypes.CDLL to honor handle parameter on POSIX systems (GH-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.
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]