[Python-ideas] bitwise operations on bytes

Eric Eisner ede at mit.edu
Fri Aug 7 13:57:54 CEST 2009


On Fri, Aug 7, 2009 at 20:51, Oleg Broytmann<phd at phd.pp.ru> wrote:
> On Fri, Aug 07, 2009 at 02:43:54PM +0300, Tal Einat wrote:
>> In any case, if you wish to propose a mutable byte/bit array which
>> supports array-wise binary operators, I can say I would certainly be
>> glad to have such a class at my disposal.
>
>   Like this http://pypi.python.org/pypi/BitVector/ ?

BitVector does seem to nicely handle every conceivable usecase I had
in mind, but I think some of that functionality would be useful to
have available in the standard implementation of bytes.

-Eric



More information about the Python-ideas mailing list