[Python-Dev] Re: accumulator display syntax
Delaney, Timothy C (Timothy)
tdelaney at avaya.com
Wed Oct 22 00:44:13 EDT 2003
> From: David Eppstein [mailto:eppstein at ics.uci.edu]
>
> Once I have iterator expressions, I can simplify it by
> dropping a whole two
> characters (the brackets) and get an unimportant time
> savings. But with
> PEP 274, I could write
>
> pos2d =
> {s:(positions[s][0]+dx*positions[s][2],positions[s][1]+dy*posi
> tions[s][2])
> for s in positions}
Don't be evil ... <wink>
Tim Delaney
More information about the Python-Dev
mailing list