Skip to main content

is_stdlib_module

Function is_stdlib_module 

Source
pub fn is_stdlib_module(name: &str) -> bool
Expand description

True when name is a top-level stdlib module of the running interpreter (sys.stdlib_module_names). Asked live so the answer tracks the pinned CPython instead of a hand list; pite check uses it to tell stdlib (ships in the export zip) from third-party (dropped) imports.