Bill Jackson wrote the following on 04/20/2007 09:48 AM:
>  >>> import some_function
> 
>  >>> a = {1:2,3:4}
>  >>> b = {1:2:4:3}
>  >>> a.clear()
>  >>> a.update(b)
> 
>  >>> a = {1:2,3:4}
>  >>> b = {1:2,4:3}
>  >>> for key in b:
> ....     a[key] = b[key]

Clearly, this won't have the same result as the other two examples.

> 
>  >>> a = {1:2,3:4}
>  >>> b = {1:2,4:3}
>  >>> a = b
> 
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to