Ð
Дамјан ГеоргиевÑки
I've needed an attribute accessible dict, so I created this.
Are there any obviously stupid shortcomings?
class AttrDict(dict):
def __getattr__(self, name):
try:
return self[name]
except KeyError, e:
raise AttributeError(e)
--
дамјан ( http://softver.org.mk/damjan/ )
Our national drug is alcohol,
we tend to regard the use any other drug with special horror.
-- William S. Burroughs
Are there any obviously stupid shortcomings?
class AttrDict(dict):
def __getattr__(self, name):
try:
return self[name]
except KeyError, e:
raise AttributeError(e)
--
дамјан ( http://softver.org.mk/damjan/ )
Our national drug is alcohol,
we tend to regard the use any other drug with special horror.
-- William S. Burroughs