

@property
def _nextwid(self):
    used_wids = set([p.wid for p in p.processes.values()])
    all_wids = set(range(1, ((self.numprocesses * 2) + 1)))
    available_wids = sorted((all_wids - used_wids))
    try:
        return available_wids[0]
    except IndexError:
        raise RuntimeError('Process count > numproceses*2')

dataset/ETHPy150Open circus-tent/circus/circus/watcher.py Watcher._nextwid/VarMisuse@24/31 `self`->`p`