[issue32168] Mutable instance variables don't get new references with args.

2017-12-02 Thread R. David Murray
R. David Murray added the comment: For the record: https://docs.python.org/3/faq/programming.html#id13 -- nosy: +r.david.murray ___ Python tracker ___ _

[issue32168] Mutable instance variables don't get new references with args.

2017-11-29 Thread Ertuğrul Karademir
Ertuğrul Karademir added the comment: Thank you Ertuğrul Karademir On Wed, Nov 29, 2017 at 11:28 AM, Eric V. Smith wrote: > > Eric V. Smith added the comment: > > This is defined behavior. Try searching for "mutable default parameter". > For example, here's an old post on it: > > http://www

[issue32168] Mutable instance variables don't get new references with args.

2017-11-29 Thread Eric V. Smith
Eric V. Smith 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 m

[issue32168] Mutable instance variables don't get new references with args.

2017-11-29 Thread Ertuğrul Karademir
New submission from Ertuğrul Karademir : Hello, I've searched all over Google and this bug tracker with all combinations of keywords that I can associate with this issue, but I couldn't find an explanation that makes sense or fits the issue. I know that when dealing with mutable variables, cl