Rob Gaddi wrote: ... > And how exactly do you propose to determine whether the constant I've > enclosed > in quotation marks in Python2 represents "text" or "binary data"? Not all > text > is words; think of SQL queries. And some words are binary data, think SCPI > commands being sent to a serial port.
why not assume one, see if it works and then if it doesn't you know it is the other? if those are the only two choices then that speeds things up. songbird -- https://mail.python.org/mailman/listinfo/python-list