title: Python extend dict value to list
body: <p>I'm trying to extend a dict value into a list in python 2.6    When i run the extend i'm not getting all dictionary values into the list. What am i missing?</p>
  
  <pre><code>def cld_compile(ru,to_file,cld):
      a = list()
      p = subprocess.Popen(ru, shell=True, stdout=subprocess.PIPE,
                           stderr=subprocess.STDOUT)
      a = p.stdout.readlines()
      p.wait()
      if (p.returncode != 0):
          os.remove(to_file)
          clderr = dict()
          clderr["filename"] = cld
          clderr["errors"] = a[1]
      return clderr
  
  
  
  
  def main():
      clderrors = list()
      &lt;removed lines&gt;
      cldterr = cld_compile(ru,to_file,cld)
      clderrors.extend(cldterr)
  </code></pre>
  
  <p>Return value of cldterr:</p>
  
  <pre><code>print cldterr
  {'errors': 'fail 0[file.so: undefined symbol: Device_Assign]: library file.so\r\n', 'filename': '/users/home/ili/a.pdr'}
  </code></pre>
  
  <p>When i attempt to extend cldterr to the list clderrors i only get:</p>
  
  <pre><code>print clderrors
  ['errors', 'filename']
  </code></pre>