Texonom
Texonom
/
Engineering
Engineering
/Software Engineering/Programming/Programming Language/Programming Languages/4GL/
Python
Python
/Python Grammar/Python Object/Python Type/
python default value per type
Search

python default value per type

Creator
Creator
Seong-lae Cho
Created
Created
2019 Nov 5 3:14
Editor
Editor
Seong-lae Cho
Edited
Edited
2023 Aug 23 15:33
Refs
Refs
list dict [] {} 보다 none
Why is the empty dictionary a dangerous default value in Python?
I put a dict as the default value for an optional argument to a Python function, and pylint (using Sublime package) told me it was dangerous. Can someone explain why this is the case? And is a better
Why is the empty dictionary a dangerous default value in Python?
https://stackoverflow.com/questions/26320899/why-is-the-empty-dictionary-a-dangerous-default-value-in-python
Why is the empty dictionary a dangerous default value in Python?

Recommendations

Texonom
Texonom
/
Engineering
Engineering
/Software Engineering/Programming/Programming Language/Programming Languages/4GL/
Python
Python
/Python Grammar/Python Object/Python Type/
python default value per type
Copyright Seonglae Cho