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 mark.dickinson, pablogsal, piotrjurkiewicz, rhettinger
Date 2018-07-26.06:42:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Thank for the suggestion and patch, but I will decline.  To me, the reseviour style algorithm doesn't fit in well (with the slow sorting step and the frequent calls to the random in the key function). For large population sizes (which sample() was designed for), the API and algorithm perform badly.  For typical student "urn problems", the better approach is to pre-weight the population by the exact counts specified in the problem.  I recommend that you post a recipe for what you want to do, but I don't think the standard library is the place for it.
Date User Action Args
2018-07-26 06:42:37rhettingersetrecipients: + rhettinger, mark.dickinson, piotrjurkiewicz, pablogsal
2018-07-26 06:42:37rhettingersetmessageid: <>
2018-07-26 06:42:37rhettingerlinkissue34227 messages
2018-07-26 06:42:37rhettingercreate