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 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 <1590922950.31.0.585228804764.issue29882@roundup.psfhosted.org>
In-reply-to
Content
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.
History
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: <1590922950.31.0.585228804764.issue29882@roundup.psfhosted.org>
2020-05-31 11:02:30Mark.Shannonlinkissue29882 messages
2020-05-31 11:02:30Mark.Shannoncreate