</span> <span class="o">=</span> <span class="bp">False</span><span class="p">):</span>     
    <span class="sd">&quot;&quot;&quot;</span>
<span class="sd">    yields permutation of axes going from self to other.</span>

<span class="sd">    E.g. for grids gr1 and gr2, g2 = g1.rearrange( g1.perm(g2) )</span>

<span class="sd">    Returns None if no permutation exists.</span>

<span class="sd">    See also rearrange.</span>
<span class="sd">    &quot;&quot;&quot;</span>  

    <span class="k">return</span> 