title: Assignment to discontinuous slices in python
body: <p>In Matlab I can do this:</p>
  
  <pre><code>s1 = 'abcdef'
  s2 = 'uvwxyz'
  
  s1(1:2:end) = s2(1:2:end)
  
  s1 is now 'ubwdyf'
  </code></pre>
  
  <p>This is just an example of the general:</p>
  
  <pre><code>A(I) = B
  </code></pre>
  
  <p>Where A,B are vectors, I a vector of indices and B is the same length as I. (Im ignoring matrices for the moment).</p>
  
  <p>What would be the pythonic equivalent of the general case in Python? Preferably it should also run on  jython/ironpython (no numpy)</p>
  
  <p><strong>Edit</strong>: I used strings as a simple example but solutions with lists (as already posted, wow) are what I was looking for.  Thanks.</p>