Skip to content

Instantly share code, notes, and snippets.

@crawftv
Created December 26, 2019 22:55
Show Gist options
  • Save crawftv/f1222f13c4be41e98a22673074e0fc0e to your computer and use it in GitHub Desktop.
Save crawftv/f1222f13c4be41e98a22673074e0fc0e to your computer and use it in GitHub Desktop.
accidental_recursion.py
#BAD
def f1(input_1,input_2):
obj(input_1, input_2).save()
f1(input_2,input1)
f1(a,b)
#NOT Bad
def f(input_1,input_2):
obj(input_1,input_2).save()
f(input_1,input_2)
f(input_2,input_1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment