I have the following recursive function, and I'm having trouble figuring out how python handles variables in recursive functions. Will it create a copy of the addresses variable for every recursion, or will it overwrite the variable and create a horrible mess?
def get_matches():
addresses = get_addresses()
#do stuff
for addr in addresses:
#do stuff
if some_condition:
get_matches()
else:
return