title: pyYAML - Error - Attribute Error: no attribute "load"
body: <p>Well, I'm playing with pyYAML. I installed the version for Python 2.7 with the Windows installer.</p>
  
  <p>It imports just fine:</p>
  
  <pre><code>import yaml
  </code></pre>
  
  <p>and it throws no errors.</p>
  
  <p>But, if I do this:</p>
  
  <pre><code>import yaml
  
  f = open("sets.yml")
  dataMap = yaml.load(f)
  f.close()
  
  print dataMap
  </code></pre>
  
  <p>It throws an attribute error and says 'module' object has no attribute 'load'.</p>
  
  <p>I tried dump, and got the same thing. Also same thing for importing like this:</p>
  
  <pre><code>from yaml import load
  </code></pre>
  
  <p>Anyone have any ideas?</p>
  
  <p>Oh, and also, I thought it was weird -- whenever I run the script, it created a .pyc of it. Why is that?</p>