This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author francescor
Recipients francescor
Date 2010-10-07.08:26:50
SpamBayes Score 1.3842921e-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