Lines Matching defs:compare
935 def compare(self, other, context=None):
2936 It's pretty much like compare(), but all NaNs signal, with signaling
2943 return self.compare(other, context=context)
2948 This is not like the standard compare, which use their numerical
2966 # compare payloads as though they're integers
4201 def compare(self, a, b):
4215 >>> ExtendedContext.compare(Decimal('2.1'), Decimal('3'))
4217 >>> ExtendedContext.compare(Decimal('2.1'), Decimal('2.1'))
4219 >>> ExtendedContext.compare(Decimal('2.1'), Decimal('2.10'))
4221 >>> ExtendedContext.compare(Decimal('3'), Decimal('2.1'))
4223 >>> ExtendedContext.compare(Decimal('2.1'), Decimal('-3'))
4225 >>> ExtendedContext.compare(Decimal('-3'), Decimal('2.1'))
4227 >>> ExtendedContext.compare(1, 2)
4229 >>> ExtendedContext.compare(Decimal(1), 2)
4231 >>> ExtendedContext.compare(1, Decimal(2))
4235 return a.compare(b, context=self)
4240 It's pretty much like compare(), but all NaNs signal, with signaling
4275 This is not like the standard compare, which use their numerical
4856 Otherwise, the operands are compared as though by the compare
4900 Otherwise, the operands are compared as though by the compare