Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

        def contains(mode,bit):
    return mode&bit==bit

src/r/e/rel-0.3.1/rel/registrar.py   rel(Download)
from listener import Event, SocketIO, Timer, Signal, contains
import select, signal, time
    import epoll
except ImportError:
                return kbint(self.signals)
            for fd,etype in items:
                if contains(etype,select.POLLIN) and fd in self.events['read']:
                if contains(etype,select.POLLOUT) and fd in self.events['write']:
                if contains(etype,select.POLLERR) or contains(etype,select.POLLHUP):