Changes between Version 1 and Version 2 of Ticket #23185, comment 54


Ignore:
Timestamp:
07/24/17 11:43:01 (4 years ago)
Author:
saraedum
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23185, comment 54

    v1 v2  
    11Shouldn't we raise a `TypeError` instead of `NotImplemented`? That seems to be what Python3 does:
    22{{{
    3 >>> float <= int
     3>>> "" < 0
    44Traceback (most recent call last):
    55  File "<stdin>", line 1, in <module>
    6 TypeError: '<=' not supported between instances of 'type' and 'type'
     6TypeError: '<' not supported between instances of 'str' and 'int'
    77}}}
    8 Then again this is for comparing types, not instances…