def got_conn(self, obj, id, overflow=False):
        log.debug('marking id: %d in use' % id)
        if not overflow:
            self.connections[id] = obj
            self.in_use[id] = True
        else:            
            self.overflow_connections[id] = obj
            self.overflow_in_use[id] = True
       
        obj.add_callback(self.disconnect, id, overflow)

        print self.in_use
        i = sum(filter(lambda x:  x, self.in_use.values()))
        log.debug('%d in %d used' % (i, self.max_connections))
        return obj
dataset/ETHPy150Open ralfonso/theory/theory/model/mpdpool.py/MPDPool.got_conn/original