cmp

cmp(x, y)

Compares the two objects x and y and return an integer according to the outcome. The return value is negative if x < y, zero if x == y and strictly positive if x > y.

To make this function work on your own classes, implement the __cmp__ method.

 

A Django site. this page was rendered by a django application in 0.01s 2008-08-07 22:52:18.281611. hosted by webfaction.