title: Reading a large numpy save file iteratively (i.e. with a generator) when the dtype=object
body: <p>I have a large numpy save file (potentially larger than fits in memory). The <code>dtype</code> is <code>object</code> (it's a numpy array of variable length numpy arrays).</p>
  
  <blockquote>
    <p>Can I avoid reading the entire file into memory? <br>
    E.g. build a generator to read elements iteratively.</p>
  </blockquote>
  
  <p>With standard numpy <code>dtypes</code> <code>np.load(filename, mmap_mode='r')</code> would do the trick, but you can't use <code>mmap_mode</code> with object data types. </p>
  
  <p>Is there any chance I can stream bytes through a reader? Or another trick I'm not aware of?</p>