[Python-ideas] Idea : for smarter assignment?

Rhodri James rhodri at kynesim.co.uk
Fri Jul 21 13:13:35 EDT 2017

On 21/07/17 18:07, Jason H wrote:
> There are basically two assignment operators, based on context, = and :
> a = 1
> { a: 1 }

No there aren't.  The colon isn't assigning at all, it's separating a 
key from a corresponding value.  The object referenced by 'a' is 
unchanged by being part of a dictionary literal.  From that point on 
your whole argument falls apart.

Rhodri James *-* Kynesim Ltd

More information about the Python-ideas mailing list