Created
February 23, 2017 16:41
-
-
Save 4poc/5761b0cdfd6d903d31a73c36aff22b90 to your computer and use it in GitHub Desktop.
python 3.4 vs. 3.5 incompatibility
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fun(a=0, b=0): | |
print(a, b) | |
fun(**{'b': 2}, a=1) # <--- breaks in 3.4 | |
fun(a=1, **{'b': 2}) # works in 3.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment