title: How to finish sys.stdin.readlines() input?
body: <p>This might be a silly question, but as I can't find an answer, I have to ask it.</p>
  
  <p>In interactive python I want to process a message which i get with:</p>
  
  <pre><code>&gt;&gt;&gt; message = sys.stdin.readlines()
  </code></pre>
  
  <p>Everything works fine, but... how to stop it from getting an input and  make it save into message variable? Stopping with ctrl+c stops whole process so there is no input to be saved anywhere. I guess there's an easy answer I just can't find...</p>