Nick Coghlan wrote:
It also allows the necessary but uninteresting setup for an expression to be moved "out of the way", bringing the expression that does the real work to prominence.

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"

Cheers,
Nick.

--
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
            http://boredomandlaziness.skystorm.net
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to