[EMAIL PROTECTED] a écrit :
jdd:
foo = {'bar': 'baz'}
foo.update({'quux': 'blah'})

That creates a new dict, to throw it away.

Just to make it clear for the easily confused ones (like me...): bearophile is talking about the dict passed as an argument to foo.update - not about the behaviour of dict.update itself (which of course modifies the dict in place) !-)

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to