Alexander Belopolsky <[email protected]> added the comment:
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?
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue8860>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com