title: why can't python execute a zip archive passed via stdin?
body: <p>I have a zip archive containing a <code>__main__.py</code> file : archive.zip</p>
  
  <p>I can execute it with</p>
  
  <pre><code>python archive.zip
  =&gt; OK !
  </code></pre>
  
  <p>but not with</p>
  
  <pre><code>cat archive.zip | python
  =&gt; File "&lt;stdin&gt;", line 1
  SyntaxError: Non-ASCII character '\x9e' in file &lt;stdin&gt; on line 2,
  but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
  </code></pre>
  
  <p>why is there a difference between the 2 modes and is there a way to make the pipe work without unzipping outside of python ?</p>
  
  <p>I receive this archive over the network and want to execute it as soon as i receive it and as fast as possible so I thought that piping the zip into python would work !</p>