The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.python
From: Christian Heimes <christ...@python.org>
Date: Thu, 25 Oct 2012 17:25:47 +0200
Local: Thurs, Oct 25 2012 11:25 am
Subject: Re: bit count or bit set && Python3
Am 25.10.2012 16:47, schrieb Charles Hixson:
> In Python3 is there any good way to count the number of on bits in an
Simple, easy, faster than a Python loop but not very elegant:
> integer (after an & operation)? bin(number).count("1")
Christian
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||