assignment expression peeve

Paul Rubin http
Fri Oct 17 17:34:35 EDT 2003


"Donn Cave" <donn at drizzle.com> writes:
> But when you can say
> 
>   if g := match(a, b):
> 
> then I suspect you will also be able to say things like -
> 
>   if not (dv := start() and f := nfile(dv)
>           and ((t := f.find("--") > 0 and fx = f[:t]) or (fx = f))):
>      print "Well, bless me!"

Well, yes, you can write messy code in any language.  There will
always be some need for tastefulness in programming.  Language
designers can't make that need go away.




More information about the Python-list mailing list