Message206977
| Author |
MLModel |
| Recipients |
MLModel |
| Date |
2013年12月27日.01:16:07 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1388106970.8.0.6745803605.issue20077@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
[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() |
|
History
|
|---|
| 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 |
|