Brian Sabbey wrote:
class C(object):
   x = property():
      doc = "I'm the 'x' property."
      def fget(self):
         return self.__x
      def fset(self, value):
         self.__x = value
      def fdel(self):
         del self.__x

After seeing this example, I think I'll go on a killing spree if your proposal doesn't get used in Python 2.5 or 2.6. Defining properties like that would be awesome, only better.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to