Re: python3: 'where' keyword
From: AdSR (adsr_at_poczta.onet.pl)
Date: 01/08/05
- Next message: Paul Rubin: "Re: python3: 'where' keyword"
- Previous message: Pierre Quentel: "Another look at language comparisons"
- In reply to: Nick Coghlan: "Re: python3: 'where' keyword"
- Next in thread: Paul Rubin: "Re: python3: 'where' keyword"
- Reply: Paul Rubin: "Re: python3: 'where' keyword"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 08 Jan 2005 11:30:57 +0100
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
- Next message: Paul Rubin: "Re: python3: 'where' keyword"
- Previous message: Pierre Quentel: "Another look at language comparisons"
- In reply to: Nick Coghlan: "Re: python3: 'where' keyword"
- Next in thread: Paul Rubin: "Re: python3: 'where' keyword"
- Reply: Paul Rubin: "Re: python3: 'where' keyword"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|