At Friday 20/10/2006 19:49, Dustan wrote:

> >>> class A(object):
>       def get_a(self): return self.__a
>       def set_a(self, new_a): self.__a = new_a
>       a = property(get_a, set_a)
>
>
> >>> class B(A):
>       b = property(get_a, set_a)

Use instead:

        b = property(A.get_a, A.set_a)


--
Gabriel Genellina
Softlab SRL
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to