title: TypeError: 'str' does not support the buffer interface - python
body: <p>I'm currently doing an online Python puzzle series, and I've gotten to a problem where you need to unload a pickled file. I read the documentation on it, but I kept getting </p>
  
  <p><code>TypeError: 'str' does not support the buffer interface</code></p>
  
  <p>...so I search on Google and arrive at a question on SO with a similar problem. The answer points to <a href="http://wiki.python.org/moin/UsingPickle" rel="nofollow">http://wiki.python.org/moin/UsingPickle</a> . </p>
  
  <p>I tried the code in the example and I'm getting the same problem? I'm using Python 3.2.2. WTF??</p>
  
  <p>Complete Traceback :</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\foo.py", line 11, in &lt;module&gt;
      test1()
    File "C:\foo.py", line 9, in test1
      favorite_color = pickle.load( open( "save.p" ) )
  TypeError: 'str' does not support the buffer interface
  </code></pre>
  
  <p>From the example here: <a href="http://wiki.python.org/moin/UsingPickle" rel="nofollow">http://wiki.python.org/moin/UsingPickle</a></p>
  
  <p>I have already successfully created the save.p file with the first code example in the tutorial. </p>