Lazily load psapi.dll in ctypes · Issue #145307 · python/cpython · GitHub
Skip to content

Lazily load psapi.dll in ctypes #145307

Description

@zooba

Bug report

Importing ctypes.util will load psapi.dll on Windows eagerly, which isn't necessary until the actual function that needs it is called. We should make it load lazily.

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

OS-windowsperformancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directorytopic-ctypestype-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions