Re: Property in derived class

2008-05-10 Thread Joseph Turian
On May 9, 9:05 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > Using the overridable property recipe [1], > [1]http://infinitesque.net/articles/2005/enhancing%20Python's%20property... Thanks, this is a great solution! Joseph -- http://mail.python.org/mailman/listinfo/python-list

Re: Property in derived class

2008-05-09 Thread George Sakkis
On May 9, 5:20 pm, Joseph Turian <[EMAIL PROTECTED]> wrote: > If I have a property in a derived class, it is difficult to override > the get and set functions: the property's function object had early > binding, whereas the overriden method was bound late. > This was previously discussed: >    http

Re: Property in derived class

2008-05-09 Thread Ian Kelly
On Fri, May 9, 2008 at 3:20 PM, Joseph Turian <[EMAIL PROTECTED]> wrote: > Could someone demonstrate how to implement the proposed solutions that > allow the property to be declared in the abstract base class, and > refer to a get function which is only implemented in derived classes? One way is t

Re: Property in derived class

2008-05-09 Thread Larry Bates
Joseph Turian wrote: If I have a property in a derived class, it is difficult to override the get and set functions: the property's function object had early binding, whereas the overriden method was bound late. This was previously discussed: http://groups.google.com/group/comp.lang.python/br

Property in derived class

2008-05-09 Thread Joseph Turian
If I have a property in a derived class, it is difficult to override the get and set functions: the property's function object had early binding, whereas the overriden method was bound late. This was previously discussed: http://groups.google.com/group/comp.lang.python/browse_thread/thread/e13a