NameError: global name '_' is not defined
<p>The code:</p>

<pre><code>if (query_id, _) in hashtable[bucket]:
</code></pre>

<p>I expected this to work <a href="https://stackoverflow.com/questions/5893163/what-is-the-purpose-of-the-single-underscore-variable-in-python">like in a for loop</a>, but instead it gives this error:</p>

<blockquote>
  <p>NameError: global name '_' is not defined</p>
</blockquote>

<p><code>hastable[bucket]</code> is a list of pairs if that matters <sub>(which I doubt)</sub>. Any ideas?</p>