Why does using `arg=None` fix Python's mutable default argument issue?

preview_player
Показать описание

--

Music by Eric Matyas
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

Question links:

--

Content licensed under CC BY-SA

--

Tags
#python #function #arguments #mutable

#avk47
Рекомендации по теме
welcome to shbcf.ru