Skip to content

Make sys.dllhandle available on non-Windows #129457

@FFY00

Description

@FFY00

Feature or enhancement

Proposal:

We currently expose the Python library path, if available, as sys.dllhandle on Windows. This could also be helpful on other platforms.

My main worry are hasattr(sys, 'dllhandle') checks that assume its availability on Windows only. @zooba, do you have any concerns about this?

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions