mirror of
https://github.com/satwikkansal/wtfpython
synced 2024-11-25 04:24:23 +01:00
Fixed logic error in "Beware of default mutable arguments!"
The example showing how using None as a default argument is used instead of a mutable default argument had reversed logic. It would set default_arg to [] whenever the caller passed a non-None argument.
This commit is contained in:
parent
de113d2491
commit
16c90f9b24
Loading…
Reference in New Issue
Block a user