Message77932
| Author |
rhettinger |
| Recipients |
fredrikj, mark.dickinson, pitrou, rhettinger, skip.montanaro, terry.reedy, vstinner |
| Date |
2008年12月16日.21:00:29 |
| SpamBayes Score |
1.353243e-05 |
| Marked as misclassified |
No |
| Message-id |
<1229461230.96.0.8200809756.issue3439@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Looks good. Marking as accepted.
Before applying, consider adding back the part of the docs with the '1 +
floor(...' definition. I think it provides a useful alternative way to
look at what the method does. Also, it gives a useful mathematical
expression that can be used in reasoning about invariants. More
importantly, we should provide it because it is so easy to make a
mistake when rolling your own version of the formula (i.e. using ceil
instead of floor or having an off by one error). |
|