Nov. 24, 2013
4:31 p.m.
On Mon, Nov 25, 2013 at 3:26 AM, Philipp A. <flying-sheep@web.de> wrote:
so i’d propose one of the following API-wise:
def __main__(): ...
@mainfunction def main(): ...
The decorator minorly worries me; what happens if you use it on two functions? Presumably both would have to be called, in the order they're in the file (or rather, the order the decorators are called), but it'd be extremely confusing to try to read that code. ChrisA