Message81316
At Objects/longobject.c, in almost all cases
OverflowError is raised when a unsigned integral is requested from a
negative PyLong. However, this one breaks the rules:
int
_PyLong_AsByteArray(PyLongObject* v,
unsigned char* bytes, size_t n,
int little_endian, int is_signed)
{
<...>
if (!is_signed) {
PyErr_SetString(PyExc_TypeError,
"can't convert negative long to
unsigned");
return -1;
}
<...>
} |
|
| Date |
User |
Action |
Args |
| 2009-02-06 23:37:46 | dalcinl | set | recipients:
+ dalcinl |
| 2009-02-06 23:37:46 | dalcinl | set | messageid: <[email protected]> |
| 2009-02-06 23:36:42 | dalcinl | link | issue5175 messages |
| 2009-02-06 23:36:42 | dalcinl | create | |
|