This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients Pouria_ff, terry.reedy, xtreak
Date 2019-10-12.05:10:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570857036.84.0.34129408011.issue38451@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2019-10-12 05:10:36xtreaksetrecipients: + xtreak, terry.reedy, Pouria_ff
2019-10-12 05:10:36xtreaksetmessageid: <1570857036.84.0.34129408011.issue38451@roundup.psfhosted.org>
2019-10-12 05:10:36xtreaklinkissue38451 messages
2019-10-12 05:10:36xtreakcreate