kuroko

System module.

Functions

_getsizeof(value)

Calculate the approximate size of an object in bytes.

Parameters
valueValue to examine.

_importmodule(module)

Import a module by string name

Imports the dot-separated module module as if it were imported by the import statement and returns the resulting module object.

Parameters
moduleA string with a dot-separated package or module name

_inspect_value()

Obtain the memory representation of a stack value.

_members()

Obtain a copy of a dict of the direct members of an object.

_modules()

Get the list of valid names from the module table

_set_clean_output(clean=True)

Disables terminal escapes in some output from the VM.

Parameters
cleanWhether to remove escapes.

_set_tracing(tracing=None,disassembly=None)

Toggle debugging modes.

Enables or disables tracing options for the current thread.

Parameters
tracingEnables instruction tracing.
disassemblyPrints bytecode disassembly after compilation.

_unload()

Removes a module from the module table. It is not necessarily garbage collected if other references to it exist.

Constants

let builddate = 'Jul 7 2023 at 09:38:02'

let buildenv = 'GCC 11.3.0'

let executable_path = '/home/klange/Projects/kuroko/kuroko'

let hexversion = 17039538

let path_sep = '/'

let version = '1.4.0b2'

Other Members

let argv = list

let module_paths = list