Felipe Almeida Lessa wrote:
> Em Sáb, 2006-04-15 às 19:25 +0000, HNT20 escreveu:
>> is there a way to convert a string into its binary representation of the
>> ascii table.??
>
> I'm very curious... why?
>
> And no, I don't have the answer.
>
well, once
Rune Strand wrote:
> HNT20 wrote:
>> Hello All
>>
>
> def ascii_to_bin(char):
> ascii = ord(char)
> bin = []
>
> while (ascii > 0):
> if (ascii & 1) == 1:
> bin.append("1")
> else:
[EMAIL PROTECTED] wrote:
> If (assuming this is correct, you can do more tests) the given strings
> are many and/or long, this can be a fast version. With Psyco this same
> version can become quite faster.
> Bye,
> bearophile
>
>
> from array import array
>
> class ToBinary(object):
> """ToB
Hello All
i am new to python language. i am working on a gnuradio project where it
uses python as the primary programming language. i am trying to convert
a message, text, or numbers into binary code so that i can process it.
i googled many times and tried many of the answers out there, no luck