in over my head ascii

Blair P. Houghton blair.houghton at gmail.com
Fri Feb 10 16:47:12 EST 2006


nephish at xit.net wrote:

> so..... how do i make 200 occupy 4 bytes ?

Did you double-check that they didn't want "0200" in ascii
in the message?

As in:

STX0200................ENX

Because that's always possible.  And, if you're _lucky_, they designed
the innards of the message so that "ENX" can never appear at random.
Though with a length parameter, you shouldn't have to worry about
that...though with a length parameter the ENX is redundant...

Argh!

I'm having flashbacks.

--Blair




More information about the Python-list mailing list