python command line yes/no input
<p>Is there any short way to achieve what APT does in Python ?</p>

<p>I mean, when the package manager prompts a yes/no question followed by "[Yes/no]".</p>

<p>The scripts accepts YES/Y/yes/y or "enter" (defaults to Yes as hinted by the capital)</p>

<p>The only thing I find in the official doc is input/raw_input..</p>

<p>I know it's not that hard to emulate, but it's annoying to rewrite :|</p>
