Mutable class instance variables in Python act like they’re static
Thursday, May 29th, 2008There's a weird behavior in Python when dealing with Mutable types such as dictionaries, that when you modify a variable defined as a class attribute, you're actually modifying a shared dictionary amongst all the classes. This seemed weird to me. You can read the lovely discussion about it, ...