> def compose( funcs ): > def reccompose( *args ): > return compose( funcs[:-1] )( funcs[-1]( *args ) ) if funcs else > funcs[0]( *args ) > return reccompose- Hide quoted text -
Which was, if funcs> 1, which is len( funcs )> 1. >>> [1]>0 Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: unorderable types: list() > int() -- http://mail.python.org/mailman/listinfo/python-list