Dictionary with additional attributes

goodman goodman.m.w at gmail.com
Tue Feb 22 20:26:12 EST 2011


On Feb 22, 1:32 pm, Robert Kern <robert.k... at gmail.com> wrote:
> On 2/22/11 1:49 PM, goodman wrote:
>
> > Hi, my question is this: Is it a bad idea to create a wrapper class
> > for a dictionary so I can add attributes?
>
> Nope. I do recommend adding a custom __repr__(), though.
>

Good point. Thanks



More information about the Python-list mailing list