Message370423
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:30 | Mark.Shannon | set | recipients:
+ Mark.Shannon, tim.peters, rhettinger, mark.dickinson, vstinner, casevh, njs, serhiy.storchaka, Jim Fasarakis-Hilliard, niklasf, gbtami |
2020-05-31 11:02:30 | Mark.Shannon | set | messageid: <1590922950.31.0.585228804764.issue29882@roundup.psfhosted.org> |
2020-05-31 11:02:30 | Mark.Shannon | link | issue29882 messages |
2020-05-31 11:02:30 | Mark.Shannon | create | |
|