M
Matthew Barnes
Is it possible to add properties to objects dynamically?
I have an instance (x) of some new-style class (Foo), and I would like
to be able to do something like:
However, when I evaluate x.myproperty I get back a property object
(which makes sense). I get the feeling I'm missing a step to "bind"
the property object to the class instance.
Is this possible (it's Python... of course it's possible, right?), and
if so, how?
Matthew Barnes
I have an instance (x) of some new-style class (Foo), and I would like
to be able to do something like:
However, when I evaluate x.myproperty I get back a property object
(which makes sense). I get the feeling I'm missing a step to "bind"
the property object to the class instance.
Is this possible (it's Python... of course it's possible, right?), and
if so, how?
Matthew Barnes