On 02 novembre 13:24, Wolfgang Rohdewald wrote:
> the new possibilities in 2.6 are certainly usual, I hope.
> At least they are official.
> From http://docs.python.org/library/functions.html:
> 
> class C(object):
>     def __init__(self):
>         self._x = None
> 
>     @property
>     def x(self):
>         """I'm the 'x' property."""
>         return self._x
> 
>     @x.setter
>     def x(self, value):
>         self._x = value
> 
>     @x.deleter
>     def x(self):
>         del self._x

this should be supported, yes. Would you file a ticket please?
 
> I guess I have to stay with @apply for now

or accept minimal namespace pollution.

-- 
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org

_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to