Eric V. Smith <e...@trueblade.com> added the comment: 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. ---------- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32168> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com