_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 2016-05-18 16:01:36.