Python style.
Fredrik Aronsson
d98aron at dtek.chalmers.se
Thu May 11 11:14:27 EDT 2000
In article <8666smcfwv.fsf at g.local>,
Gareth McCaughan <Gareth.McCaughan at pobox.com> writes:
>
> But my preference, which is for some notation along the
> lines of
>
> map({a,b,c -> a+b+c}, p,q,r)
>
> isn't very Pythonic. Especially as we already have a {...}
> syntax for dictionaries.
>
Well, using Haskells syntax, I would suggest
map((\a,b,c -> a+b+c), p,q,r)
Python-with-haskell-syntax-would-be-a-dream-ly yours,
Fredrik
More information about the Python-list
mailing list