Skip to main content

builtin_module_defs

Function builtin_module_defs 

Source
pub fn builtin_module_defs(ctx: &Context) -> Vec<&'static PyModuleDef>
Expand description

Returns module definitions for multi-phase init modules.

These modules use multi-phase initialization pattern:

  1. Create module from def and add to sys.modules
  2. Call exec slot (can safely import other modules without circular import issues)