New submission from Francesco Ricciardi <francesco.riccia...@hp.com>:

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.

----------
components: Library (Lib)
files: test_total_ordering.py
messages: 118096
nosy: francescor
priority: normal
severity: normal
status: open
title: total_ordering stack overflow
type: crash
versions: Python 3.2
Added file: http://bugs.python.org/file19144/test_total_ordering.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10042>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to