Skip to content

_wmi missing in sys.stdlib_module_names #123892

Closed
@mtnpke

Description

@mtnpke

Bug report

Bug description:

Given that import _wmi succeeds on a minimal Python distribution (embeddable amd64 downloaded from https://www.python.org/downloads/release/python-3130rc2/ for example), should _wmi not be included in sys.stdlib_module_names?

python-3.13.0rc2-embed-amd64 $ .\python.exe Python 3.13.0rc2 (tags/v3.13.0rc2:ec61006, Sep 6 2024, 22:13:49) [MSC v.1940 64 bit (AMD64)] on win32 >>> import sys >>> "_wmi" in sys.stdlib_module_names False >>> import _wmi >>> 

(My use case is that I am generating license exports automatically and any packages that are not resolvable to a distribution and not included in stdlib_module_names lead to an error or need special-casing.)

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions