Created
December 26, 2019 22:55
-
-
Save crawftv/f1222f13c4be41e98a22673074e0fc0e to your computer and use it in GitHub Desktop.
accidental_recursion.py
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
#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