The whole of a long script section is collected and then executed at once. On-the-fly interscript for test 8 follows.
385: @head(1,'Long script sections') 386: Here is a long script. We define a class MyClass. 387: @class MyClass: 388: def __init__(self, name): 389: self.name = name 390: def hello(self): 391: print 'Hello',self.name 392: 393: # test it 394: me = MyClass('John') 395: me.hello() 396: deliberate error 397: @doc() 398: After all that, the deliberate error is ignored.
Errors in script sections are reported with a traceback to the logfile, but do not halt processing. You cannot terminate an Interscript processing run inside a script section, not even with sys.exit(). [Interscript can be terminated with a keyboard interrupt or system abort signal, however.]