mirror of
https://github.com/satwikkansal/wtfpython.git
synced 2024-08-17 16:10:42 +03: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