Re: binascii.a2b_binary

2006-04-03 Thread Serge Orlov
Ed Swarthout wrote: > Why is there no binascii.a2b_binary(bitstr) which returns the binary data > represented by the bit string? Like: > > >>> binascii.a2b_binary('0011001100110101') > '35' > > perl has pack("B*", "0011001100110101

Re: binascii.a2b_binary

2006-04-03 Thread Scott David Daniels
Ed Swarthout wrote: > Why is there no binascii.a2b_binary(bitstr) which returns the binary data > represented by the bit string? Like: > >>>> binascii.a2b_binary('0011001100110101') > '35' > perl has pack("B*", "0011001100110101&

binascii.a2b_binary

2006-04-02 Thread Ed Swarthout
Why is there no binascii.a2b_binary(bitstr) which returns the binary data represented by the bit string? Like: >>> binascii.a2b_binary('0011001100110101') '35' perl has pack("B*", "0011001100110101"); What is the python way to do this? Othe