This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | belopolsky |
|---|---|
| Recipients | belopolsky, mark.dickinson, mcherm, rhettinger, stutzbach, tim.peters, vstinner |
| Date | 2010年06月01日.03:54:39 |
| SpamBayes Score | 0.040031504 |
| 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: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 | |