Sometimes i need to create an anonymous class instance in python, just like c#:
var o= new {attr1=\"somehing\", attr2=344};
but in python i
class attrdict(dict): def __getattr__(self, key): return self[key] o = attrdict(attr1='something', attr2=344) o.attr1
But it seems like you should probably just use a standard dict.