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 tim.peters
Recipients chemoelectric, docs@python, rhettinger, tim.peters
Date 2022-01-23.22:24:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642976646.35.0.779833856126.issue46488@roundup.psfhosted.org>
In-reply-to
Content
I'm not inclined to change anything here. It's a trivial point, and by "primitive" I had in mind a dedicated hardware instruction, blazing fast. Yes, I was aware of long-winded ways of doing it for specific fixed integer widths. But that's not what `O(1)` means. A dead obvious loop testing each bit, one at a time, starting with the MSB, until finding the first bit set, is also O(1) for any fixed-width int size.

So I'm not doing anything here. If someone else creates a PR with text they want to see instead, I'll review it, and if it's not unbearably pedantic ;-) I'll merge it.
History
Date User Action Args
2022-01-23 22:24:07tim.peterssetrecipients: + tim.peters, rhettinger, docs@python, chemoelectric
2022-01-23 22:24:06tim.peterssetmessageid: <1642976646.35.0.779833856126.issue46488@roundup.psfhosted.org>
2022-01-23 22:24:06tim.peterslinkissue46488 messages
2022-01-23 22:24:06tim.peterscreate