def __init__(self, conn, key, n_replicas=RING_REPLICAS):

        self.conn = conn
        self.key = key

        host = socket.gethostname()
        pid = os.getpid()
        # Create unique identifiers for the replicas
        self.replicas = [(
            random.randrange(2**32),
            '{host}:{pid}:{rand}'.format(
                host=host,
                pid=pid,
                rand=os.urandom(4).encode('hex')
            )
        ) for n in range(n_replicas)]

        # List of tuples of ranges this node is responsible for, where a tuple
        # (a, b) includes any N matching a <= N < b.
        self.ranges = []

        self._select = select.select
let raw passthrough as markdown
dataset/ETHPy150Open closeio/redis-hashring/redis_hashring/__init__.py/RingNode.__init__--crossover with--dataset/ETHPy150Open astroML/sklearn_tutorial/doc/notebooks/nbconvert.py/raw_to_md