title: Python compare char to hex
body: <pre><code>&gt;&gt;&gt; var = 'g'  
  &gt;&gt;&gt; print hex(ord(var))  
  0x67  
  &gt;&gt;&gt; print hex(ord(var)) == 0x67  
  False
  </code></pre>
  
  <p>Why isn't this true in python 2.7?<br>
  What would be the best way to compare 'g' to the hex value 0x67?</p>