How can I recreate a pointer to a global array in python
<p>I want to have 2 global arrays for results</p>

<pre><code>global_array1 = []
global_array2 = []
</code></pre>

<p>In my function, I will add value to different array depends on condition:</p>

<pre><code>def myfunc():
  global global_array1:
  global global_array2:

  result =[]

  for a in anArray:
      if some_condition == True:
          result = global global_array1
      else 
          result = global_array2

      # do something hhere
      result.append(aResult)
</code></pre>

<p>But when I try it, I don't see myFunction is saving result to the global array.
How can I make 'result' as a pointer to either of my global_array1 or global_array2?</p>
