In article <[email protected]>, Tycho Andersen <[email protected]> wrote: > Yes, I understand that, but I guess I don't understand *why* things > are done that way. What is the evaluation order principle at work > here? I would have expected: > > tmp = {} > x['huh'] = tmp # NameEror! > > That is, the right hand sides of assignments are evaluated before the > left hand sides. That is (somehow?) not the case here.
http://docs.python.org/py3k/reference/simple_stmts.html#assignment-statem ents -- Ned Deily, [email protected] -- http://mail.python.org/mailman/listinfo/python-list
