Issue 12796: total_ordering goes into infinite recursion when NotImplemented is returned
Issue12796
Created on 2011-08-20 20:27 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| totbug.py | pitrou, 2011-08-20 20:27 | |||
| Messages (2) | |||
|---|---|---|---|
| msg142558 - (view) | Author: Antoine Pitrou (pitrou) * ![]() |
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: Alyssa Coghlan (ncoghlan) * ![]() |
Date: 2011-08-22 08:47 | |
This is a dupe of #10042 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:57:20 | admin | set | github: 57005 |
| 2011-08-22 08:47:23 | ncoghlan | set | status: open -> closed resolution: duplicate superseder: functools.total_ordering fails to handle NotImplemented correctly messages: + msg142702 |
| 2011-08-20 20:27:33 | pitrou | create | |
