title: Strict comparison
body: <p>In javascript, there are strict comparison operators <code>op1 === op2</code> and <code>op1 !== op2</code> that will compare both type and value. Is there a pythonic way of achieving the same thing?</p>
  
  <p>So far I've only been able to come up with the following messy conditionals:</p>
  
  <pre><code>isinstance(op1, type(op2)) and isinstance(op2, type(op1)) and op1 == op2
  </code></pre>
  
  <p>and </p>
  
  <pre><code>not isinstance(op1, type(op2)) or not isinstance(op2, type(op1)) or op1 != op2
  </code></pre>