Nick Coghlan wrote:

Killer app for this keyword:

class C(object):

  x = property(get, set) where:
    def get(self):
      return "Silly property"
    def set(self, val):
      self.x = "Told you it was silly"

Hey, this is super-elegant!

AdSR
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to