[Python-Dev] Rich Comparison from "C" API?

David Abrahams David Abrahams" <david.abrahams@rcn.com
Wed, 12 Jun 2002 10:09:49 -0400

Suppose I want to execute, from "C", the same steps taken by Python in
evaluating the expression

    x <= y

I see no documented "C" API function which can do that. I'm guessing
PyObject_RichCompare[Bool] may do what I want, but since it's undocumented
I assume its untouchable. Guido?


                  David Abrahams
      C++ Booster (http://www.boost.org)               O__  ==
      Pythonista (http://www.python.org)              c/ /'_ ==
  resume: http://users.rcn.com/abrahams/resume.html  (*) \(*) ==
          email: david.abrahams@rcn.com