src/basilisp/lang/compiler/generator.py
def _module_imports(ctx: GeneratorContext) -> Iterable[ast.Import]:
    """Generate the Python Import AST node for importing all required
    language support modules."""
    # Yield `import basilisp` so code attempting to call fully qualified
    # `basilisp.lang...` modules don't result in compiler errors
    yield ast.Import(names=[ast.alias(name="basilisp", asname=None)])
    for imp in ctx.imports:
        name = imp.key.name
        alias = _MODULE_ALIASES.get(name, None)
        yield ast.Import(names=[ast.alias(name=name, asname=alias)])
def _module_imports(ctx: GeneratorContext) -> Iterable[ast.Import]:
    # Yield `import basilisp` so code attempting to call fully qualified
    # `basilisp.lang...` modules don't result in compiler errors
    yield ast.Import(names=[ast.alias(name="basilisp", asname=None)])
    for imp in ctx.imports:
        name = imp.key.name
        alias = _MODULE_ALIASES.get(name, None)
        yield ast.Import(names=[ast.alias(name=name, asname=alias)])
def _module_imports ( ctx : GeneratorContext ) -> Iterable [ ast . Import ] : # Yield `import basilisp` so code attempting to call fully qualified # `basilisp.lang...` modules don't result in compiler errors yield ast . Import ( names = [ ast . alias ( name = "basilisp" , asname = None ) ] ) for imp in ctx . imports : name = imp . key . name alias = _MODULE_ALIASES . get ( name , None ) yield ast . Import ( names = [ ast . alias ( name = name , asname = alias ) ] )
Generate the Python Import AST node for importing all required
    language support modules.
Generate the Python Import AST node for importing all required language support modules .