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 HardikPatel, ned.deily, ronaldoussoren, xtreak
Date 2019-03-21.23:12:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1553209945.61.0.362436382405.issue36393@roundup.psfhosted.org>
In-reply-to
Content
This is expected behavior. Please read : https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects . Default values are defined when function is created and not for every function call and you are having a reference to the returned list that is mutated. Also please use a better name for default since list is a built-in datatype and can cause confusion.
History
Date User Action Args
2019-03-21 23:12:25xtreaksetrecipients: + xtreak, ronaldoussoren, ned.deily, HardikPatel
2019-03-21 23:12:25xtreaksetmessageid: <1553209945.61.0.362436382405.issue36393@roundup.psfhosted.org>
2019-03-21 23:12:25xtreaklinkissue36393 messages
2019-03-21 23:12:25xtreakcreate