[Tutor] Bit Manipulations

Remco Gerlich scarblac@pino.selwerd.nl
Wed, 4 Jul 2001 11:10:28 +0200


On  0, Praveen Pathiyil <ppathiyi@cisco.com> wrote:
> Can we do direct operations on the binary input got from the recv() call ?
> How will python treat such input ? I mean as which type should we take them
> ?

You can have arbitrary binary data in a Python string.

Check out the struct module to see how you can convert from and to binary
data in general.

-- 
Remco Gerlich