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 eric.smith
Recipients ekarademir, eric.smith
Date 2017-11-29.11:28:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511954880.62.0.213398074469.issue32168@psf.upfronthosting.co.za>
In-reply-to
Content
This is defined behavior. Try searching for "mutable default parameter". For example, here's an old post on it:

http://www.effbot.org/zone/default-values.htm

This isn't related to class vs. instance attributes, but rather the default parameter 'props' being modified.
History
Date User Action Args
2017-11-29 11:28:00eric.smithsetrecipients: + eric.smith, ekarademir
2017-11-29 11:28:00eric.smithsetmessageid: <1511954880.62.0.213398074469.issue32168@psf.upfronthosting.co.za>
2017-11-29 11:28:00eric.smithlinkissue32168 messages
2017-11-29 11:28:00eric.smithcreate