Message106825
I wonder if it would be justified to expose something like
int
_PyLong_IsOdd(PyObject *self)
{
PyLongObject *lo = (PyLongObject *)self;
return Py_SIZE(lo) != 0 && ((lo->ob_digit[0] & 1) != 0);
}
in longobject.h? |
|
Date |
User |
Action |
Args |
2010-06-01 03:54:41 | belopolsky | set | recipients:
+ belopolsky, tim.peters, mcherm, rhettinger, mark.dickinson, vstinner, stutzbach |
2010-06-01 03:54:41 | belopolsky | set | messageid: <1275364481.73.0.412336942918.issue8860@psf.upfronthosting.co.za> |
2010-06-01 03:54:39 | belopolsky | link | issue8860 messages |
2010-06-01 03:54:39 | belopolsky | create | |
|