Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
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. ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37624> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com