title: eval String-cmp-operator?
body: <p>Is there a way to eval the comparison where the comparison operator is passed as string. without doing alot of if-else's. F.e.</p>
  
  <pre><code> def cmp(arg1, op, arg2) : ......
  </code></pre>
  
  <p>and then :</p>
  
  <pre><code> cmp(5, "==", 6)
   cmp(7, "&gt;", 6)
   cmp(12, "&lt;=", 34)
   cmp("abc", "==", "bad")
  </code></pre>