How can I load all keys from a dict as local variables, a better aproach?
<p>Giving this dictionary:</p>

<pre><code>&gt;&gt;&gt; options = {'DATABASES': {'default': {'ENGINE': 'django.db.backends.sqlite3'}}}
</code></pre>

<p>What would be the best way to get this?:</p>

<pre><code>&gt;&gt;&gt; foo(options)
&gt;&gt;&gt; print DATABASES
{'default': {'ENGINE': 'django.db.backends.sqlite3'}}
</code></pre>

<p>I am solving this as locals().update(options), but I was thinking, if there is maybe a better solution.</p>
