why does this happen?

Dan Parisien dan at eevolved.com
Sun Feb 11 18:12:23 EST 2001


key = 0
dict = {0:''}
key = dict[key] = "__0"
print key
>>> __0
print dict
>>> {9: '', '__9': '__9'} 

It doesn't do it from right to left like in c? Obviously not. Does anyone 
know why?

thank you,
Dan





More information about the Python-list mailing list