Author Mark.Shannon
Recipients Jim Fasarakis-Hilliard, Mark.Shannon, casevh, gbtami, mark.dickinson, niklasf, njs, rhettinger, serhiy.storchaka, tim.peters, vstinner
Date 2020-05-31.11:02:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Why are calling a population count method "bit_count()"?
That seems likely to cause confusion with "bit_length()".

I might reasonable expect that 0b1000.bit_count() be 4, not 1. It does have 4 bits.
Whereas 0b1000.population_count() is clearly 1.

I have no objection to adding this method, just the choice of name.
Date User Action Args
2020-05-31 11:02:30Mark.Shannonsetrecipients: + Mark.Shannon, tim.peters, rhettinger, mark.dickinson, vstinner, casevh, njs, serhiy.storchaka, Jim Fasarakis-Hilliard, niklasf, gbtami
2020-05-31 11:02:30Mark.Shannonsetmessageid: <>
2020-05-31 11:02:30Mark.Shannonlinkissue29882 messages
2020-05-31 11:02:30Mark.Shannoncreate