sending a byte on a socket

Cliff Wells clifford.wells at comcast.net
Wed Aug 27 08:53:29 CEST 2003


On Tue, 2003-08-26 at 23:38, Daniel Timothy Bentley wrote:
> Slamming my head against what should be an easy problem:
> 
> How do I send a byte across an open, connected socket?
> 
> Do I have to implement my own type that implements some method a string
> normally does?
> 
> Or is there some hidden encoding that will let me turn a byte into a
> string?

chr(byte)

Regards,

-- 
Someone shot nostalgia in the back, someone shot our innocence
                                                     -Bauhaus






More information about the Python-list mailing list