Lua

class lua.List

This object is available in Lua code as the object list and is a helper class for working with Python lists.

len(object) → integer

Return the number of items of a sequence or collection.

static new(*args)

Create a new Python list for use with Python code.

Example: local pythonList = list.new(1, 2, 3, 4)

static slice(collection, start=None, end=None, step=None)

Retrieve the start, stop and step indices from the slice object list. Treats indices greater than length as errors.

This can be used for slicing python lists (e.g. l[0:10:2]).

lua.sleep(ms)

Delay for a specified amount of time.

ms:The number of milliseconds to sleep.