Skip to content

Instantly share code, notes, and snippets.

@4poc
Created February 23, 2017 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4poc/5761b0cdfd6d903d31a73c36aff22b90 to your computer and use it in GitHub Desktop.
Save 4poc/5761b0cdfd6d903d31a73c36aff22b90 to your computer and use it in GitHub Desktop.
python 3.4 vs. 3.5 incompatibility
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