Implementation of **kwargs construct in python
<p>I implemented a class in python which currently inherits from dict, but really, I don't want it to. The main reason for inheriting is so that I can use the **kwargs construct for copying the contents into an argument list.</p>

<p>I presume python does some sort of iteration over the dictionary, but I can't find any documentation.</p>

<p>Is this possible, and, if so, how?</p>

<p>Code sample just to make things clearer:</p>

<pre><code>   class MyThing():
       def __init__(self):
            self.dictionary = {}


   thing = MyThing()
   # code that causes thing.dictionary to be populated
   somefunc(**thing)
</code></pre>

<p>results in this:</p>

<pre><code>TypeError: somefunc() argument after ** must be a mapping, not instance
</code></pre>
