]> granicus.if.org Git - python/commit
Clear errors raised by PyObject_Compare() without losing any existing
authorFred Drake <fdrake@acm.org>
Thu, 31 Aug 2000 19:04:07 +0000 (19:04 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 31 Aug 2000 19:04:07 +0000 (19:04 +0000)
commitc88b99ce060e37a9098708483b7e3c8b5db87fbd
tree96f8e7021566516eab50215c4f549a5bb7d7f091
parenta3895c0d291c795ed9e36fd86118d6679f1d917b
Clear errors raised by PyObject_Compare() without losing any existing
exception context.  This avoids improperly propogating errors raised by
a user-defined __cmp__() by a subsequent lookup operation.

This patch does *not* include the performance enhancement patch for
dictionaries with string keys only; that will be checked in separately.

This closes SourceForge patch #101277 and bug #112558.
Objects/dictobject.c