Fix bugs in 3.6 default parameter handling

Mentioned in Issue #139
This commit is contained in:
rocky
2017-12-01 20:12:06 -05:00
parent edfedec65c
commit dad1b4780c
3 changed files with 26 additions and 9 deletions

View File

@@ -0,0 +1,9 @@
# Python 3.6 changes, yet again, the way deafult 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