Re:WTFPython – Understanding Python through surprising snippets
by Izkata on Monday December 23, 2019 @08:47AM
(#21863532)
The underlying feature that both rely on is that default arguments are set on function declaration instead of function call. Mutable/immutable only affects whether or not you hit the bug.
[ Parent
| on HN ]
There are no comments on this comment yet.