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

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/c/o/concurrence-HEAD/lib/concurrence/io/socket.py   concurrence(Download)
import _io
 
from concurrence import Tasklet, FileDescriptorEvent
from concurrence.io import IOStream
 
    def _get_readable(self):
        if self._readable is None:
            self._readable = FileDescriptorEvent(self.fd, 'r')
        return self._readable
 
    def _get_writable(self):
        if self._writable is None:
            self._writable = FileDescriptorEvent(self.fd, 'w')
        return self._writable