title: h5py assigning to dataset my multidimensional index
body: <p>Using h5py I have a hdf5 dataset D of shape (n_1, …, n_k, m) and I want to write vectors of length m (for example) at index i=(i_1, …, i_k) where k is completely arbitrary</p>
  
  <p>If I knew k in advance I could write</p>
  
  <pre><code>D[i_1, ..., i_k] = vector
  </code></pre>
  
  <p>How can I do this in a more arbitrary way? What I really would really like (which is invalid python) would be something that could be understood using the parameter expansion operator (that can't actually be used here)</p>
  
  <pre><code>D[*i] = vector
  </code></pre>