replace dict contents

Andrew Bennetts andrew-pythonlist at
Tue Jul 27 10:16:23 CEST 2004

On Tue, Jul 27, 2004 at 08:56:35AM +0100, Robin Becker wrote:
> Is there a simple way to replace the contents of a dictionary entirely 
> with those of another.
> for lists we can do
> L1[:] = L2
> but there doesn't seem to be an equivalent for dicts.



More information about the Python-list mailing list