539681fffd
From now on, all new tests must use underscore. Addresses issue #727.
12 lines
154 B
Python
12 lines
154 B
Python
# test closure with default args
|
|
|
|
def f():
|
|
a = 1
|
|
def bar(b = 10, c = 20):
|
|
print(a + b + c)
|
|
bar()
|
|
bar(2)
|
|
bar(2, 3)
|
|
|
|
print(f())
|