Dynamically creating propertys
Timothy Grant
tjg at craigelachie.org
Sat Dec 28 18:28:30 EST 2002
Thanks for the excellent explaination and examples!
It helped in a big way.
On Saturday 28 December 2002 12:00 pm, Nicodemus wrote:
> Timothy Grant wrote:
> >Is it possible to dynamically create a property? I've got some code that
> > uses dynamically created attributes, but on looking at the new property
> > stuff it looks like that code could be significantly improved if I could
> > use property access instead.
>
> You can add methods and attributes to a class after it was defined.
> Suppose you have a class C, which has an attribute x, with getter and
--
Stand Fast,
tjg.
Timothy Grant
www.craigelachie.org
More information about the Python-list
mailing list