Built-in global variables
File objects used for standard input, output and errors:
:stdinis used for all interactive input (including calls to
:stdoutis used for the output of
- error messages go to
The array of command-line arguments.
:argvis the executable name.
It can be accessed only when there is a
:start:marker present in the source code.
:start:marker is an analogue of Python's
if __name__ == '__main__'and is used to denote code which shouldn't be executed when this source file is imported from another source file (see this example).)