progman.py: BASIC-like LOAD(), NEW() and RUN() program management functions for Python.

This module provides program management functions similar to those of interactive BASIC interpreters:

Startup code is defined as statements at indent level 0 after which there are no further function or class definitions.

Not of much use in a module or standalone script, this module is designed to be imported and used in an interactive interpreter.

This module should be imported as early as possible so it can later restore the interpreter state correctly.

If you import this module after importing some modules they will be considered part of the base state and therefore available after NEW()

Oren Tirosh

Back