5.4.1. Long script sections

5.4.1. Long script sections

You can code long script sections such as a class definition. The rule is: a long script section is started by a line starting with @ and ending with :,( or one of the characters that python would recognize that signifies that there is more to come. You must then indent the code with exactly one extra space. A long script section is ended by the first line not having a space character in column 1 (or the end of file).

The whole of a long script section is collected and then executed at once.

Errors in script sections are reported with a traceback but do not halt processing. You cannot terminate an Interscript processing run inside a script section, not even with sys.exit().