The Python Oracle

Why is the empty dictionary a dangerous default value in Python?

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 a Mysterious Island Looping

--

Chapters
00:00 Question
00:29 Accepted answer (Score 261)
00:57 Answer 2 (Score 278)
01:24 Thank you

--

Full question
https://stackoverflow.com/questions/2632...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #optionalparameters #pylint #optionalarguments

#avk47