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 rhettinger
Recipients Ted Whalen, aldwinaldwin, docs@python, mark.dickinson, rhettinger
Date 2019-07-19.09:27:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1563528470.16.0.554070001393.issue37624@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-07-19 09:27:50rhettingersetrecipients: + rhettinger, mark.dickinson, docs@python, Ted Whalen, aldwinaldwin
2019-07-19 09:27:50rhettingersetmessageid: <1563528470.16.0.554070001393.issue37624@roundup.psfhosted.org>
2019-07-19 09:27:50rhettingerlinkissue37624 messages
2019-07-19 09:27:49rhettingercreate