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 ekarademir
Recipients ekarademir, eric.smith
Date 2017-11-29.11:32:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CACn2h20=B8ZLsKmLVYnVTvuq9izgLpR5BO0gunzQQZpmW9hOmA@mail.gmail.com>
In-reply-to <1511954880.62.0.213398074469.issue32168@psf.upfronthosting.co.za>
Content
Thank you

Ertuğrul Karademir

On Wed, Nov 29, 2017 at 11:28 AM, Eric V. Smith <report@bugs.python.org>
wrote:

>
> Eric V. Smith <eric@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 <report@bugs.python.org>
> <https://bugs.python.org/issue32168>
> _______________________________________
>
History
Date User Action Args
2017-11-29 11:32:25ekarademirsetrecipients: + ekarademir, eric.smith
2017-11-29 11:32:25ekarademirlinkissue32168 messages
2017-11-29 11:32:25ekarademircreate