def __init__(self, name=None):
    'Initialize a controller.'
    if _debug:
        IOController._debug('__init__ name=%r', name)
    self.name = name
    if (name is not None):
        if (name in _local_controllers):
            raise RuntimeError(("already a local controller called '%s': %r" % (name, _local_controllers[name])))
        _local_controllers[name] = self
Initialize a controller.
def __init__(self, name=None):
    
    if _debug:
        IOController._debug('__init__ name=%r', name)
    self.name = name
    if (name is not None):
        if (name in _local_controllers):
            raise RuntimeError(("already a local controller called '%s': %r" % (name, _local_controllers[name])))
        _local_controllers[name] = self