title: .reverse() not working on one row of a multidimensional array in jython?
body: <p>I've been playing around with Jython recently, and I've noticed something strange. I'm sure I'm missing something obvious here, but can someone explain to me why .reverse() doesn't work on a single row of a multidimensional array?</p>
  
  <p>input is being passed in from Java using PythonInterpreter.set()</p>
  
  <p>When I execute the following python code...</p>
  
  <pre><code>#Integer[][] input
  print(input[0])
  input[0].reverse()
  print(input[0])
  </code></pre>
  
  <p>I get the following output, with the values not having been reversed.</p>
  
  <pre><code>array(java.lang.Integer, [0, 1, 1, 1, 1])
  array(java.lang.Integer, [0, 1, 1, 1, 1])
  </code></pre>
  
  <p>Though if I execute reverse() on a single dimensional array...</p>
  
  <pre><code>#Integer[] input;
  print(input)
  input.reverse()
  print(input)
  </code></pre>
  
  <p>The results are as I would expect.</p>
  
  <pre><code>array(java.lang.Integer, [0, 1, 1, 1, 1])
  array(java.lang.Integer, [1, 1, 1, 1, 0])
  </code></pre>
  
  <p>Likewise, if I copy input[0] to its own variable, then reverse, it also works as expected.</p>
  
  <pre><code>#Integer[][] input
  print(input[0])
  tmp = input[0]
  tmp.reverse()
  input[0] = tmp
  print(input[0])
  </code></pre>
  
  <p>I also get the results I would expect.</p>
  
  <pre><code>array(java.lang.Integer, [0, 1, 1, 1, 1])
  array(java.lang.Integer, [1, 1, 1, 1, 0])
  </code></pre>
  
  <p>I also get the expected result from...</p>
  
  <pre><code>#Integer[][] input
  print(input[0])
  input[0] = input[::-1]
  print(input[0])
  </code></pre>
  
  <p>---EDIT---</p>
  
  <p>It would also appear that .insert() also fails to act in under these circumstances...</p>
  
  <pre><code>#Integer[][] input
  print(input[0])
  input[0].insert(0,123)
  print(input[0])
  </code></pre>
  
  <p>Produces...</p>
  
  <pre><code>array(java.lang.Integer, [0, 1, 1, 1, 1])
  array(java.lang.Integer, [0, 1, 1, 1, 1])
  </code></pre>
  
  <p>Same goes for .append() and .pop(). I have the feeling this applies to many, if not all, list functions.</p>