Message348158
Misc side notes:
* There is no expected behavior for negative a negative weight. Arguably, the only reasonable interpretation is what it already does (reduce the cumulative total).
* Running simulations is a primary use case for choices(). Generally, running time there is important.
* During the design phase, none of the other implementations studied had incorporated a scan of the inputs for negative weights.
* bisect() does not check to make sure its inputs are sorted. The results for unsorted data are undefined. It is a documented precondition. |
|
Date |
User |
Action |
Args |
2019-07-19 09:27:50 | rhettinger | set | recipients:
+ rhettinger, mark.dickinson, docs@python, Ted Whalen, aldwinaldwin |
2019-07-19 09:27:50 | rhettinger | set | messageid: <1563528470.16.0.554070001393.issue37624@roundup.psfhosted.org> |
2019-07-19 09:27:50 | rhettinger | link | issue37624 messages |
2019-07-19 09:27:49 | rhettinger | create | |
|