title: Python Spyder stops responding
body: <p>I have <strong>Spyder 2.3.8</strong> that I installed with Anaconda.</p>
  
  <p><strong>Python version is 2.7.11, conda version is 4.0.5.</strong></p>
  
  <p>I have found that some types of code make the Spyder editor stop responding. One example is the line: </p>
  
  <pre><code>x = b'\x89\x50\x4E\x47\x0D\x0A\x1A\x0A'
  </code></pre>
  
  <p>I assume this is a valid python code. I am relatively new to Python, so please correct me if I am wrong here. I tried in on a terminal on the Python shell and it works. </p>
  
  <p>Another very strange example is</p>
  
  <pre><code>png = 'oxy.png'
  
  f = open(png, 'rb') 
  f.read(10) # That executes without any problems
  f.close()
  
  f = open(png, 'rb') 
  x = f.read(10) # this line makes Spyder freeze!
  f.close()
  </code></pre>
  
  <p>The only difference here is that I assign <code>f.read()</code> to a variable, and that makes Spyder stop responding! </p>
  
  <p>I just updated Spyder and all other anaconda packages. The error was happening before and it still happens. Any idea of what I could be doing wrong, or what could I try?</p>
  
  <p>EDIT: There was this other part of the question which has been explained already (thanks!)</p>
  
  <p>I also tried to run the following example I found on the internet: </p>
  
  <pre><code>name = input("What is your name? ")
  print("Nice to meet you " + name + "!")
  </code></pre>
  
  <p>This example gives me an exception. Here is the full output:</p>
  
  <pre><code>name = input("What's your name? ")
  print("Nice to meet you " + name + "!")
  
  What is your name? sininho
  Traceback (most recent call last):
  
    File "&lt;ipython-input-1-e82cc0e3f7a3&gt;", line 1, in &lt;module&gt;
      name = input("What's your name? ")
  
    File "/scr/elbe9/pauline/physio/program/python_libraries/anaconda2/lib/python2.7/site-packages/ipykernel/ipkernel.py", line 165, in &lt;lambda&gt;
      builtin_mod.input = lambda prompt='': eval(self.raw_input(prompt))
  
    File "&lt;string&gt;", line 1, in &lt;module&gt;
  
  NameError: name 'sininho' is not defined
  </code></pre>