Author codemiller
Recipients Jim.Jewett, catalin.iacob, codemiller, eric.araujo, francescor, javawizard, lregebro, ncoghlan, python-dev, rhettinger
Date 2013-07-08.06:56:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1373266611.34.0.622310222196.issue10042@psf.upfronthosting.co.za>
In-reply-to
Content
Attaching patch with Nick Coghlan's suggested code from msg140493 and associated tests. The tests extend the single test case that had already been added for earlier changes based on this bug. The tests check that a TypeError is raised, rather than a stack overflow occurring, when two instances of classes decorated with total_ordering that return NotImplemented, are compared, with each of the four comparison operators. For each operator, a test is included that would cause the recursion error if not for the code patch, as well as one where this error does not occur as there is no recursion.

Patch tested against the default branch.
History
Date User Action Args
2013-07-08 06:56:51codemillersetrecipients: + codemiller, rhettinger, ncoghlan, eric.araujo, lregebro, francescor, catalin.iacob, python-dev, javawizard, Jim.Jewett
2013-07-08 06:56:51codemillersetmessageid: <1373266611.34.0.622310222196.issue10042@psf.upfronthosting.co.za>
2013-07-08 06:56:51codemillerlinkissue10042 messages
2013-07-08 06:56:51codemillercreate