Changes between Version 1 and Version 2 of Ticket #23185, comment 54
- Timestamp:
- 07/24/17 11:43:01 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23185, comment 54
v1 v2 1 1 Shouldn't we raise a `TypeError` instead of `NotImplemented`? That seems to be what Python3 does: 2 2 {{{ 3 >>> float <= int3 >>> "" < 0 4 4 Traceback (most recent call last): 5 5 File "<stdin>", line 1, in <module> 6 TypeError: '< =' not supported between instances of 'type' and 'type'6 TypeError: '<' not supported between instances of 'str' and 'int' 7 7 }}} 8 Then again this is for comparing types, not instances…