Message307221
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>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2017-11-29 11:32:25 | ekarademir | set | recipients:
+ ekarademir, eric.smith |
2017-11-29 11:32:25 | ekarademir | link | issue32168 messages |
2017-11-29 11:32:25 | ekarademir | create | |
|