title: best way to deal with python pdb flakiness re/stdout?
body: <p>If I have a program where <code>stdout</code> is redirected, my pdb prompts all go to the redirection, because the library was written to write to <code>stdout</code>.</p>
  
  <p>Oftentimes this problem is subtle, causing me to think a program is hanging when it's really waiting for input. </p>
  
  <p>How do people work around this? (Unfortunately, using other debuggers like winpdb is not an option).</p>