Python: How can a class inherit from a function?
<p>Here's a piece of code that I cannot understand:</p>

<pre><code>class COWMeta(type):
    pass

class COWDictMeta(COWMeta):
    ....
</code></pre>

<p>I know how to create a new class in python: </p>

<pre><code>class MyClass(BaseClass):
    ...
</code></pre>

<p>But as the manual states, 'type' is function.  </p>

<blockquote>
  <p>type(...)<br>
  Function of <code>__builtin__</code> module<br>
  type(object) -> the object’s type type(name, bases, dict) -> a new type  </p>
</blockquote>

<p>How can a class inherit from a function? And what does that piece of code mean?  </p>
