If a dictionary contains mutable objects or objects of custom classes (say a queryset, or a even a DateTime), then will calling clear() on the dictionary delet
clear()
In your case, the two MyClass objects are shared. They will still be accessible via the my_obj_1 and my_obj_2.
MyClass
my_obj_1
my_obj_2