Here's a piece of code that I cannot understand:
class COWMeta(type):
    pass
class COWDictMeta(COWMeta):
    ....
I know how to create a new class in python:
class MyClass(BaseClass):
    ...
But as the manual states, 'type' is function.
type(...)
Function of__builtin__module
type(object) -> the object’s type type(name, bases, dict) -> a new type
How can a class inherit from a function? And what does that piece of code mean?
 
     
     
    