Dictionary with additional attributes
Robert Kern
robert.kern at gmail.com
Tue Feb 22 16:32:44 EST 2011
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.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list
mailing list