Files
python-uncompyle6/test/simple_source/bug36/03_fn_defaults.py
2024-07-10 13:31:39 -04:00

23 lines
417 B
Python

# Python 3.6 changes, yet again, the way default pairs are handled
def foo1(bar, baz=1):
return 1
def foo2(bar, baz, qux=1):
return 2
def foo3(bar, baz=1, qux=2):
return 3
def foo4(bar, baz, qux=1, quux=2):
return 4
# From 3.6 compileall.
# Bug was in omitting default which when used in an "if"
# are treated as False would be
def _walk_dir(dir, ddir=None, maxlevels=10, quiet=0):
return