"M.-A. Lemburg" <mal@lemburg.com> writes: > Except one which was implicit: how to tell binary data from > text data. I see. In this case, class BinaryString(str): pass should do. The string type *is* the type for binary data. For character data, unicode is the type. Regards, Martin