title: Python comparison functions
body: <p>I have some data that lends itself to representation as a value and a comparison function, <code>(val, f)</code>, so another value can be checked against it by seeing if <code>f(val, another)</code> is <code>True</code>.  That's easy.  </p>
  
  <p>Some of them just need <code>&gt;</code>, <code>&lt;</code>, or <code>==</code> as <code>f</code>, however, and I can't find a clean way of using them; I end up writing things like <code>ScorePoint(60, lambda a, b: a &lt;= b)</code>.  That's ugly.  </p>
  
  <p>Is there a way I can do something more like <code>ScorePoint(60, &lt;=)</code>?</p>