Why does using `arg=None` fix Python's mutable default argument issue?
This video explains
Why does using `arg=None` fix Python's mutable default argument issue?
--
Become part of the top 3% of the developers by applying to Toptal
https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Over Ancient Waters Looping
--
Chapters
00:00 Question
01:17 Accepted answer (Score 21)
02:39 Answer 2 (Score 31)
05:55 Answer 3 (Score 17)
06:32 Answer 4 (Score 4)
06:58 Thank you
--
Full question
https://stackoverflow.com/questions/1067...
Question links:
[the Mutable Default Argument problem]: https://stackoverflow.com/questions/1132...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #function #arguments #mutable
#avk47
Why does using `arg=None` fix Python's mutable default argument issue?
--
Become part of the top 3% of the developers by applying to Toptal
https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Over Ancient Waters Looping
--
Chapters
00:00 Question
01:17 Accepted answer (Score 21)
02:39 Answer 2 (Score 31)
05:55 Answer 3 (Score 17)
06:32 Answer 4 (Score 4)
06:58 Thank you
--
Full question
https://stackoverflow.com/questions/1067...
Question links:
[the Mutable Default Argument problem]: https://stackoverflow.com/questions/1132...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #function #arguments #mutable
#avk47