Author belopolsky
Recipients belopolsky, mark.dickinson, mcherm, rhettinger, stutzbach, tim.peters, vstinner
Date 2010-06-01.03:54:39
SpamBayes Score 0.0400315
Marked as misclassified No
Message-id <1275364481.73.0.412336942918.issue8860@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2010-06-01 03:54:41belopolskysetrecipients: + belopolsky, tim.peters, mcherm, rhettinger, mark.dickinson, vstinner, stutzbach
2010-06-01 03:54:41belopolskysetmessageid: <1275364481.73.0.412336942918.issue8860@psf.upfronthosting.co.za>
2010-06-01 03:54:39belopolskylinkissue8860 messages
2010-06-01 03:54:39belopolskycreate