[issue38451] Datetime definition does not work in function definition as list definition
Karthikeyan Singaravelan
report at bugs.python.org
Sat Oct 12 01:10:36 EDT 2019
Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:
Default arguments are evaluated only once as the function is defined and not per call.
This is a common gotcha : https://stackoverflow.com/questions/1132941/least-astonishment-and-the-mutable-default-argument
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38451>
_______________________________________
More information about the Python-bugs-list
mailing list