Message206977
[ctypes correct component for this?]
The TypeError messages given for incompatible types in comparison operators differ from incompatible types in arithmetic operators. The arithmetic operator error messages show the names of the types in single quotes, while the comparison error messages do not use quotes but follow the name of the type with a pair of parens. Seems like these should be analogous.
class foo(): pass
...
>>> foo() + 1
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for +: 'foo' and 'int'
>>> foo() < 1
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unorderable types: foo() < int() |
|
Date |
User |
Action |
Args |
2013-12-27 01:16:11 | MLModel | set | recipients:
+ MLModel |
2013-12-27 01:16:10 | MLModel | set | messageid: <1388106970.8.0.6745803605.issue20077@psf.upfronthosting.co.za> |
2013-12-27 01:16:10 | MLModel | link | issue20077 messages |
2013-12-27 01:16:07 | MLModel | create | |
|