code: def connections_of(self, target):
          ''' generate tuples containing (relation, object_that_applies) '''
          return gen.chain( ((r,i) for i in self.find(target,r)) for r in self.relations_of(target) f connections_of(self, target):
          ''' generate tuples containing (relation, object_that_applies) '''
          return gen.chain( ((r,i) for i in self.find(target,r)) for r in self.relations_of(target) )
docs: generate tuples containing (relation, object_that_applies)