Bitsets in Python

Rajarshi Guha rajarshi at presidency.com
Thu Feb 5 20:04:22 EST 2004


On Tue, 03 Feb 2004 19:56:36 -0800, Josiah Carlson wrote:

>>   does Python have any native support for bitsets? I dont seem to see
>>   anything in the standard library?
> 
> What do you mean 'bitsets'?  Give a list of functionality of your 
> 'bitsets', and it will be easy for us to tell you whether Python 
> includes it.

Sorry for th late reply. Thanks to everybody who responded. 

A little background to the problem - I'm evaluating molecular fingerprints
which use bitsets of length N and set certain bits on depending on whether
a feature is present. So I was essentially looking for Java style bitsets. 

In the end I wrote a small class which did the job (since all I need is to
keep track of which positions are on)

Thanks,

-- 
-------------------------------------------------------------------
Rajarshi Guha  <rajarshi at presidency.com> <http://jijo.cjb.net>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04  06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
Q:  What's purple and commutes?
A:  An abelian grape.




More information about the Python-list mailing list