Expected Result
>>>range(10)
range(0, 10)
>>>range(10) ==range(10)
True>>>str(range(10))
'range(0, 10)'
Actual Result
>>>range(10)
<rangeinstanceat0xc0002c8380>>>>range(10) ==range(10)
Traceback (mostrecentcalllast):
File"<stdin>", line1, in<module>FIXMElineofsourcegoeshereTypeError: "unsupported operand type(s) for ==: 'range' and 'range'">>>str(range(10))
'<range instance at 0xc0002c8c60>'
The __repr__, __str__, __eq__, and __ne__ functions of the range object are not implemented.
Expected Result
Actual Result
The
__repr__,__str__,__eq__, and__ne__functions of therangeobject are not implemented.