Skip to content

gh-162362: Resolve dyld functions from the process on import ctypes.util on macOS - #162363

Open
maurycy wants to merge 6 commits into
python:mainfrom
maurycy:ctypes-find-library-cwd
Open

maurycy wants to merge 6 commits into
python:mainfrom
maurycy:ctypes-find-library-cwd

Conversation

@maurycy

@maurycy maurycy commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Use CDLL(None) to look up _dyld_image_count and _dyld_get_image_name. Both symbols are already available in the process. This removes the import-time search for libc, which could load a library from the working directory on macOS.

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