Karthikeyan Singaravelan <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue38451>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to