Closed fepegar closed 4 years ago
Moving it into the function caused problems as the dict is called recursively and the list kept getting wiped
Try the same but with explicitly passing found=[] as an argument. Should work, I know it looks crazy but it works for me
Then I suggest you use found=None
and write in the function found = [] if found is None else found
. Then you can pass the found
argument within the code of the function.
(btw this thing about passing the argument found=[] was in the docstrings and in the suggestion to #124 )
but anyhow clearly your suggestion is better code
done in 51abd4713ffe76890ca03b1ab2808994069be7f1
This is because you're using mutable object as kwarg. I suggest moving
found=[]
into the function instead of passing it as an argument.