[issue33703] Object deletion and re-creation points to same attribute if attribute is a dictionary.

2018-05-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: Please see https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects -- nosy: +benjamin.peterson resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python

[issue33703] Object deletion and re-creation points to same attribute if attribute is a dictionary.

2018-05-30 Thread Nitin Bhojwani
New submission from Nitin Bhojwani : I observed a strange behaviour while working on a module. This bug is present in multiple python version so seems it is related to core-interpreter. Behaviour can be reproduced by: 1. Create an object and in __init__ of class, we define a dictionary attribu