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 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 <>
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?
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: <>
2013-08-26 23:25:58madison.maylinkissue18844 messages
2013-08-26 23:25:58madison.maycreate