homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:11MLModelsetrecipients: + MLModel
2013年12月27日 01:16:10MLModelsetmessageid: <1388106970.8.0.6745803605.issue20077@psf.upfronthosting.co.za>
2013年12月27日 01:16:10MLModellinkissue20077 messages
2013年12月27日 01:16:07MLModelcreate

AltStyle によって変換されたページ (->オリジナル) /