title: Python List Comprehension of Dictionaries and OpenCV
body: <p>When I run this, Python sits and takes takes forever at <code>arr</code>. It just slowly consumes RAM and does nothing else:</p>
  
  <pre><code>import os
  import glob
  import cv2
  
  root = r'path\to\img'
  
  files = glob.iglob( os.path.join(root,'*.jpg') )
  
  arr = [ { 'img_nm' : fl,
            'img' : cv2.imread( fl ) } for fl in files ]
  </code></pre>
  
  <p>Any help would be appreciated.</p>