What is the best way to make a shallow copy of a Python dictionary?
<p>Assume we have a simple Python dictionary:</p>

<pre><code>dict_ = {'foo': 1, 'bar': 2}
</code></pre>

<p>Which is the better way to copy this dictionary?</p>

<pre><code>copy1 = dict(dict_)
copy2 = dict_.copy()
</code></pre>

<p>Is there a compelling reason to favour one approach over the other?</p>
