How to explain exactly what "def" does?

holger krekel pyth at devel.trillke.net
Mon Feb 3 19:06:24 EST 2003


Greg Ewing (using news.cis.dfn.de) wrote:
> Andy Jewell wrote:
> 
> > Holger,
> > 
> > I'm glad you think list-comps are ugly too.
> 
> 
> List comps themselves aren't ugly, but abusing them
> for things like that certainly is! (And probably
> gives them a bad name.)

Yeah, i was partly kidding.  I admit they have some
nice uses.  

But still i'd like to see what you consider beautiful uses
while we are at it. 

    holger





More information about the Python-list mailing list