def status(pool): tup = pool.size(), pool.checkedin(), pool.overflow(), \ pool.checkedout() print('Pool size: %d Connections in pool: %d Current '\ 'Overflow: %d Current Checked out connections: %d' % tup) return tup
def status(pool): return pool.size(), pool.checkedin(), pool.overflow(), \ pool.checkedout()
def status(pool): tup = (pool.size(), pool.checkedin(), pool.overflow(), pool.checkedout()) print "Pool size: %d Connections in pool: %d Current Overflow: %d Current Checked out connections: %d" % tup return tup