Message264325
>> If yes, maybe we should start with a module on PyPI. Is there a volunteer to try this option?
>
> bitsets – ordered subsets over a predefined domain
This is an array of *bits*, not an array of bytes (or integers).
> bitarray – efficient boolean array implemented as C extension
This one is also an array of *bits*, but I see .frombytes() and
.tobytes() methods.
> bitstring – pure-Python bit string based on bytearray
Array of *bits*. I don't see how to use an array of integers (or a
byte string) with it.
> BitVector – pure-Python bit array based on unsigned short array
> Bitsets – Cython interface to fast bitsets in Sage
> bitfield – Cython positive integer sets
> intbitset – integer bit sets as C extension
I'm too lazy to check these ones.
I didn't check these modules support operations like x^y.
> Is it enough? Ah, and NumPy.
I'm quite sure that NumPy supports operations like x^y ;-) And NumPy
supports a wide choices of arrays.
Victor |
|
Date |
User |
Action |
Args |
2016-04-26 19:25:58 | vstinner | set | recipients:
+ vstinner, gvanrossum, georg.brandl, rhettinger, terry.reedy, gregory.p.smith, pitrou, christian.heimes, socketpair, Ramchandra Apte, martin.panter, serhiy.storchaka, abarnert, josh.r, cowlicks |
2016-04-26 19:25:58 | vstinner | link | issue19251 messages |
2016-04-26 19:25:58 | vstinner | create | |
|