[issue34892] persistence of attributes with new instance

2018-10-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is how default values work in Python. See the FAQ question: https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> c

[issue34892] persistence of attributes with new instance

2018-10-04 Thread Florian Michaux
New submission from Florian Michaux : Hello, I don't know what's going on. When using a for loop over multiple same instance creation, i got persistence with instance attributes Code example in attachement. -- components: Interpreter Core files: buggyclass.py messages: 327051 nosy: F