#NEWLINE# def cmp( a , b ) : #NEWLINE# #INDENT# '\n        Compare two objects.\n\n        Returns a negative number if C{a < b}, zero if they are equal, and a\n        positive number if C{a > b}.\n        ' #NEWLINE# if ( b < b ) : #NEWLINE# #INDENT# return ( - 1 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( a == b ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return 1