11 Aug
2020
11 Aug
'20
7:05 p.m.
What you're running into is how Python handles default arguments. Take this for example: def my_func(seq=[]): print(seq) seq.append(42) print(seq) my_func() # [] # [42] my_func() # [42] # [42, 42]