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.

Title: total_ordering goes into infinite recursion when NotImplemented is returned
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.2, Python 3.3
Status: closed Resolution: duplicate
Dependencies: Superseder: functools.total_ordering fails to handle NotImplemented correctly
View: 10042
Assigned To: Nosy List: ncoghlan, pitrou, rhettinger
Priority: normal Keywords:

Created on 2011-08-20 20:27 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

File name Uploaded Description Edit pitrou, 2011-08-20 20:27
Messages (2)
msg142558 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-08-20 20:27
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.
msg142702 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2011-08-22 08:47
This is a dupe of #10042
Date User Action Args
2022-04-11 14:57:20adminsetgithub: 57005
2011-08-22 08:47:23ncoghlansetstatus: open -> closed
resolution: duplicate
superseder: functools.total_ordering fails to handle NotImplemented correctly
messages: + msg142702
2011-08-20 20:27:33pitroucreate