Don't you just love writing this sort of thing :)

Rhodri James rhodri at wildebst.demon.co.uk
Sat Dec 6 18:00:17 EST 2008


On Sat, 06 Dec 2008 01:20:55 -0000, Lawrence D'Oliveiro  
<ldo at geek-central.gen.new_zealand> wrote:

> Do you find this
>    (open, gzip.GzipFile)[Entry.endswith(".gz")](os.path.join(PatchesDir,  
> Entry), "r")
> complicated or hard to understand? It's made up of very simple pieces,
> combined according to very simple rules, viz:-

Yes, it's very pretty, and you're terribly clever.  In six months' time
when you come back to make some engineering change and have to sit down and
break it back down into those simple pieces to remind yourself what it's
doing, "pretty" and "clever" will not be the words you are using.  Trust
me on this one.

-- 
Rhodri James *-* Wildebeeste Herder to the Masses



More information about the Python-list mailing list