Author rhettinger
Recipients aisaac, dkorchem, madison.may, mark.dickinson, neil.g, pitrou, rhettinger, serhiy.storchaka, tim.peters, westley.martinez
Date 2014-08-10.09:45:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1407663912.4.0.5204420932.issue18844@psf.upfronthosting.co.za>
In-reply-to
Content
I'm adverse to adding the generator magic and the level of complexity in this patch.  Please aim for the approach I outlined above (one function to build cumulative weights and another function to choose the value).

Since this isn't a new problem, please take a look at how other languages and packages have solved the problem.
History
Date User Action Args
2014-08-10 09:45:12rhettingersetrecipients: + rhettinger, tim.peters, mark.dickinson, pitrou, aisaac, westley.martinez, serhiy.storchaka, neil.g, madison.may, dkorchem
2014-08-10 09:45:12rhettingersetmessageid: <1407663912.4.0.5204420932.issue18844@psf.upfronthosting.co.za>
2014-08-10 09:45:12rhettingerlinkissue18844 messages
2014-08-10 09:45:12rhettingercreate