[Python-Dev] chained assignment weirdity

R. David Murray rdmurray at bitdance.com
Tue Nov 6 17:26:55 CET 2012


On Tue, 06 Nov 2012 18:14:38 +0200, Serhiy Storchaka <storchaka at gmail.com> wrote:
> Another counterintuitive (and possible wrong) example:
> 
>    >>> {print('foo'): print('bar')}
>    bar
>    foo
>    {None: None}

http://bugs.python.org/issue11205

--David


More information about the Python-Dev mailing list