""" This is a, errrm... ehm...ehm, test suite fro Scribus Scripter console. It's *console* so there are some limitations - see comments in the code """ import sys class Test:     def __init__(self):         print 'init' # HACK: Here cannot lay the empty row. As it's in classical Python console # How to solve it (without any lexical analysis)?     def method(self):         print 'print: method'         return 'method' # HACK: Here *MUST* be an empty row 'cos the class end def fce():     print 'print: fce'     return 'fce' fce() t = Test() t.method() print "foo"