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 wolma
Recipients gregory.p.smith, ncoghlan, oscarbenjamin, serhiy.storchaka, steven.daprano, wolma
Date 2014-02-03.10:09:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391422171.7.0.161204942639.issue20479@psf.upfronthosting.co.za>
In-reply-to
Content
Well, I was thinking about frequencies (ints) when suggesting

    for x,m in data.items():
        T = _coerce_types(T, type(x))
        n, d = exact_ratio(x)
        partials[d] = partials_get(d, 0) + n*m

in my previous message. To support weights (float or Rational) this would have to be more sophisticated.

Wolfgang
History
Date User Action Args
2014-02-03 10:09:31wolmasetrecipients: + wolma, gregory.p.smith, ncoghlan, steven.daprano, serhiy.storchaka, oscarbenjamin
2014-02-03 10:09:31wolmasetmessageid: <1391422171.7.0.161204942639.issue20479@psf.upfronthosting.co.za>
2014-02-03 10:09:31wolmalinkissue20479 messages
2014-02-03 10:09:31wolmacreate