[New-bugs-announce] [issue12796] total_ordering goes into infinite recursion when NotImplemented is returned

Antoine Pitrou report at bugs.python.org
Sat Aug 20 22:27:34 CEST 2011


New submission from Antoine Pitrou <pitrou at free.fr>:

This small test file exhibits the issue. When @total_ordering is not applied, the '<' operator raises TypeError as expected. When @total_ordering is applied, there is an infinite recursion error.

----------
components: Library (Lib)
files: totbug.py
messages: 142558
nosy: ncoghlan, pitrou, rhettinger
priority: normal
severity: normal
status: open
title: total_ordering goes into infinite recursion when NotImplemented is returned
type: behavior
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file22967/totbug.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12796>
_______________________________________


More information about the New-bugs-announce mailing list