Author francescor
Recipients francescor
Date 2010-10-07.08:26:50
SpamBayes Score 1.38429e-10
Marked as misclassified No
Message-id <1286440012.74.0.624864175042.issue10042@psf.upfronthosting.co.za>
In-reply-to
Content
Tested with version 3.2a2. Not tested on version 2.7.

The current implementation of functools.total_ordering generates a stack overflow because it implements the new comparison functions with inline operator, which the Python interpreter might reverse if "other" does not implement them. Reversing the comparison makes the interpreter call again the lambda function for comparison generating a stack overflow.

Run the attached test file for an example of this behavior.
History
Date User Action Args
2010-10-07 08:26:52francescorsetrecipients: + francescor
2010-10-07 08:26:52francescorsetmessageid: <1286440012.74.0.624864175042.issue10042@psf.upfronthosting.co.za>
2010-10-07 08:26:51francescorlinkissue10042 messages
2010-10-07 08:26:50francescorcreate