kuroko

System module.

Functions

_get_recursion_depth()

Examine the maximum recursion depth of the current thread.

_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_recursion_depth()

Change the maximum recursion depth of the current thread if possible.

_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 = 'Apr 24 2024 at 09:15:59'

let buildenv = 'GCC 11.4.0'

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

let hexversion = 17105057

let path_sep = '/'

let version = '1.5.0a1'

Other Members

let argv = list

let module_paths = list