class_docstr: A simple, select()-based IOLoop implementation for non-Linux systems
class_docstr_tok: ["A","simple",",","select","(",")","-based","IOLoop","implementation","for","non-Linux","systems"]
code: def poll(self, timeout):
      readable, writeable, errors = select.select(
          self.read_fds, self.write_fds, self.error_fds, timeout
      )
      events = {}
      for fd in readable:
          events[fd] = events.get(fd, 0) | IOLoop.READ
      for fd in writeable:
          events[fd] = events.get(fd, 0) | IOLoop.WRITE
      for fd in errors:
          events[fd] = events.get(fd, 0) | IOLoop.ERROR
      return events.items()
  
file_path: catboost/contrib/python/tornado/tornado-4/tornado/platform/select.py
imports: from __future__ import absolute_import, division, print_function
  import select
  from tornado.ioloop import IOLoop, PollIOLoop
label_desc: Use image node_id 6 for calling the _Select obj's underlying member method code with example usage: obj.poll(timeout) and returns: events