def __repr__(self):
        params = {
            'class': self.__class__.__name__,
            'name': self.name,
            'inmod': self.inmod.name,
            'outmod': self.outmod.name
        }
        return "<%(class)s '%(name)s': '%(inmod)s' -> '%(outmod)s'>" % params
A simple representation (this should probably be expanded by
dataset/ETHPy150Open pybrain/pybrain/pybrain/structure/connections/connection.py/Connection.__repr__