def hello(name, times=1, greeting=('g', unicode('Hello'), 'Greeting to use')): """ Hello world continues the long established tradition of delivering simple, but working programs in all kinds of programming languages. This tests different docstring formatting (just text instead of having subject and body). """ # opster should somehow do this automatically: name = decodearg(name) # no parsing for optional arguments yet :\ for i in range(int(times)): out.write(unicode("{0} {1}\n").format(greeting, name).encode('utf-8'))
def convert(self, final): return decodearg(final)