A
aurora
Sometimes I find it useful to create an instance of some dummy class so
that I can bind abitrary attributes to it. I sometimes prefer this to
mapping object.
Rather that creating a dummy class, why not just instantiate from the
object class? However:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'object' object has no attribute 'x'
I know I must have misunderstood something. Can you tell me what was wrong?
that I can bind abitrary attributes to it. I sometimes prefer this to
mapping object.
Rather that creating a dummy class, why not just instantiate from the
object class? However:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'object' object has no attribute 'x'
I know I must have misunderstood something. Can you tell me what was wrong?