How complex is complex?

Tim Roberts timr at probo.com
Thu Mar 19 01:03:53 EDT 2009


bearophileHUGS at lycos.com wrote:
>
>In Python 3 those lines become shorter:
>
>for k, v in a.items():
>{k: v+1 for k, v in a.items()}

That's a syntax I have not seen in the 2-to-3 difference docs, so I'm not
familiar with it.  How does that cause "a" to be updated?
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list