Message251488
And this is the only case where type name followed with '()' is occurred in error message. The repr() shouldn't be used in error message because it can be too long (imagine 'x'*10**9 < None) and can raise an exception.
IMHO more correct would be message "unorderable types: int and NoneType", but it lose the information about operation.
Yet one option is to follow the template for other binary operators:
>>> 1 + None
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType' |
|
Date |
User |
Action |
Args |
2015-09-24 07:00:06 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, ezio.melotti, r.david.murray, Mark.Shannon |
2015-09-24 07:00:06 | serhiy.storchaka | set | messageid: <1443078006.55.0.880532201273.issue25210@psf.upfronthosting.co.za> |
2015-09-24 07:00:06 | serhiy.storchaka | link | issue25210 messages |
2015-09-24 07:00:06 | serhiy.storchaka | create | |
|