FAQ

From: Daniel Timothy Bentley [mailto:dbentley at stanford.edu]

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?

This is surely a simple question for anyone who remembers the answer.
A one character string is a byte...

byteString = chr(byte)

hth,
-- bjorn

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 4 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedAug 27, '03 at 6:38a
activeAug 27, '03 at 7:18a
posts4
users4
websitepython.org

People

Translate

site design / logo © 2022 Grokbase