Meaning of self.__dict__ = self in a class definition : <p>I'm trying to understand the following snippet of code:</p>

<pre><code>class Config(dict):
    def __init__(self):
        self.__dict__ = self
</code></pre>

<p>What is the purpose of the line <code>self.__dict__ = self</code>? I suppose it overrides the default <code>__dict__</code> function with something that simply returns the object itself, but since <code>Config</code> inherits from <code>dict</code> I haven't been able to find any difference with the default behavior.</p>
