title: selectors equivalent for Python 2?
body: <p>Python 3 has the <code>selectors</code> module, which allows us to <code>register</code> on a file descriptor event, and only later in a different part of the code <code>select</code> on it.</p>
  
  <p>In Python 2 we only have the <code>select</code> module, which requires that we 'register' and 'select' on the same line, which is limiting.</p>
  
  <p>If I want to register on an event in one function and wait for it ('select') in a different one, how can this be done in Python 2?</p>