March 2, 2009
5:05 p.m.
Weeble wrote:
Would this be crazy? Make this:
def spam(a,b,c)(d,e,f): [BODY]
a synonym for:
def spam(a,b,c): def spam2(d,e,f): [BODY] return spam2
What advantage does this style have over: def spam(a, b, c, d, e, f): [BODY] spam3 = functools.partial(spam, 'initial', 'three', 'args') --Scott David Daniels Scott.Daniels@Acm.Org