Message106828
The accumulated error doesn't need to exceed 1; it just needs to be enough to make (e.g.) leftover appear to be >= 0.5 when it's actually just less than 0.5. It shouldn't be too hard to find examples where this happens, but I haven't thought about it.
> I wonder if it would be justified to expose something like
> int _PyLong_IsOdd(PyObject *self) {...}
Yes, that could work. I'd be happier with this if there are other uses (even within longobject.c); there might well be, but I haven't looked. I also have a mild preference for _PyLong_IsEven over _PyLong_IsOdd. :) |
|
Date |
User |
Action |
Args |
2010-06-01 06:59:37 | mark.dickinson | set | recipients:
+ mark.dickinson, tim.peters, mcherm, rhettinger, belopolsky, vstinner, stutzbach |
2010-06-01 06:59:37 | mark.dickinson | set | messageid: <1275375577.66.0.214035966135.issue8860@psf.upfronthosting.co.za> |
2010-06-01 06:59:35 | mark.dickinson | link | issue8860 messages |
2010-06-01 06:59:35 | mark.dickinson | create | |
|