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 veky
Recipients Allen Downey, DavidMertz, josh.r, mark.dickinson, pitrou, rhettinger, serhiy.storchaka, steven.daprano, veky, wolma
Date 2018-05-18.08:17:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526631445.96.0.682650639539.issue25478@psf.upfronthosting.co.za>
In-reply-to
Content
My reading of the documentation says floats are only tentatively supported. The main text of the documentation says the values are supposed to be integers. Even the note mostly talks about negative values, the floats are mentioned in only one item. (And in that item, it says the value type should support addition and subtraction. I think it's not too big a stretch to stipulate it should support them accurately.:)

But whatever you do about total (cached property was just my idea to enable implementation of a probability distribution as a view on a Counter), it's obvious from the documentation that the output of normalize is _not_ a Counter. It might be a subclass, but I'd rather it be a completely separate class. The API intersection is not really that fat.
History
Date User Action Args
2018-05-18 08:17:25vekysetrecipients: + veky, rhettinger, mark.dickinson, pitrou, steven.daprano, serhiy.storchaka, wolma, josh.r, Allen Downey, DavidMertz
2018-05-18 08:17:25vekysetmessageid: <1526631445.96.0.682650639539.issue25478@psf.upfronthosting.co.za>
2018-05-18 08:17:25vekylinkissue25478 messages
2018-05-18 08:17:25vekycreate