Author madison.may
Recipients aisaac, madison.may, mark.dickinson, pitrou, rhettinger, serhiy.storchaka
Date 2013-08-26.23:25:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377559558.88.0.191363572451.issue18844@psf.upfronthosting.co.za>
In-reply-to
Content
I realize its probably quite early to begin putting a patch together, but here's some preliminary code for anyone interested.  It builds off of the "common task" example in the docs and adds in validation for the weights list.

There are a few design decisions I'd like to hash out.  
In particular: 

  - Should negative weights cause a ValueError to be raised, or should they be converted to 0s?
  - Should passing a list full of zeros as the weights arg raise a ValueError or be treated as if no weights arg was passed?
History
Date User Action Args
2013-08-26 23:25:58madison.maysetrecipients: + madison.may, rhettinger, mark.dickinson, pitrou, aisaac, serhiy.storchaka
2013-08-26 23:25:58madison.maysetmessageid: <1377559558.88.0.191363572451.issue18844@psf.upfronthosting.co.za>
2013-08-26 23:25:58madison.maylinkissue18844 messages
2013-08-26 23:25:58madison.maycreate