xsnippet logotype

xsnippet

#362680, Untitled [ Python 3 ]

by Guest
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
testbox = box.Box()
testbox.put('b', 42)

@testbox.pass_('b')
def fn(a, b, c):
    return a + b + c

fn(1, 2, 3)        # (1) _?
fn(1, 2)           # (2) _?

fn(a=1, b=2, c=3)  # (3) _?
fn(a=1, c=2)       # (4) _?