import(module:)

Imports a module.

Declaration

func ` import `(
    module: String
) throws -> Object

Parameters

  • module: Full module name to import.

Throws

An Exception if a Python exception was raised. Otherwise, an unhandled error.

Returns

The imported module.