<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1011" rel="nofollow">http://projects.scipy.org/numpy/ticket/1011</a> on 2009-02-19 by trac user anjiro, assigned to unknown.</em></p>
<p dir="auto">Testing for <code class="notranslate">None</code> in an array always returns <code class="notranslate">False</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import numpy as np
&gt;&gt;&gt; 5 in np.array([None, 5, 23])
True
&gt;&gt;&gt; None in np.array([None, 5, 23])
False"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import numpy as np
&gt;&gt;&gt; 5 in np.array([None, 5, 23])
True
&gt;&gt;&gt; None in np.array([None, 5, 23])
False
</code></pre></div>
<p dir="auto">Sorry if this is a duplicate (I wasn't able to find any reference to it). It seems to me that the ties in argsort are sometimes reported incorrectly. For example for the code below shouldn't the result be either [2,0,1] or [2,1,0]? Instead I get [1, 2, 0]</p>
<h3 dir="auto">Reproducing code example:</h3>

<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
np.argsort([1, 0, 0])"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">np</span>.<span class="pl-en">argsort</span>([<span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>])</pre></div>
<h3 dir="auto">Error message:</h3>


<h3 dir="auto">NumPy/Python version information:</h3>

<p dir="auto">1.19.2 3.7.4 (default, Aug 13 2019, 15:17:50)<br>
[Clang 4.0.1 (tags/RELEASE_401/final)]</p>