python: Is this a wrong way to remove an element from a dict?
<p>I use this way to remove an emelment from a dict:</p>

<pre><code>    d["ele"] = data
...
    d["ele"] = None
</code></pre>

<p>I think by this I can remove the reference on the original element so that the removed data can be freed, no memory leak.</p>

<p>Is it the right way to do this?</p>
