Karthikeyan Singaravelan <tir.kar...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue38451> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com