4 ms·
That’s beautiful. Why didn’t I think of that?!
by azhenley 2y ago
That’s beautiful. Why didn’t I think of that?!
- rplnt 2y agoProbably because not using mutable default arguments is python 101. Just something you don't do or think about. But this is indeed clever use of that gotcha.