Subclassing a dictionary
Sep. 15th, 2009 12:02 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Makes me love Python. I needed an class for a test suite for the DWMinion module I'm making to make it easy to create DWAccount objects on the fly. I figured out that I could do this by subclassing the dict class.
( Code here )
( Code here )