t.p.c._ConstantsContainerType(type) : class documentation

Part of twisted.python.constants View Source View In Hierarchy

_ConstantsContainerType is a metaclass for creating constants container classes.
Method __new__ Create a new constants container class.
def __new__(self, name, bases, attributes): (source)
Create a new constants container class.

If attributes includes a value of None for the "_constantType" key, the new class will not be initialized as a constants container and it will behave as a normal class.

ParametersnameThe name of the container class. (type: str)
basesA tuple of the base classes for the new container class. (type: tuple of _ConstantsContainerType instances)
attributesThe attributes of the new container class, including any constants it is to contain. (type: dict)
API Documentation for Twisted, generated by pydoctor at 2013-11-08 22:07:30.