snacktime wrote:
Correction on this, ETX is ok, it seems to be just STX with the data I am using.
On Wed, 26 Jan 2005 11:50:46 -0800, snacktime <[EMAIL PROTECTED]> wrote:
I'm trying to figure out why the following code transforms ascii STX
(control-b) into "\x82". The perl module I use returns a
Argh, never mind my mistake. I wasn't logging the data correctly the
parity conversion works fine.
Chris
--
http://mail.python.org/mailman/listinfo/python-list
Correction on this, ETX is ok, it seems to be just STX with the data I am using.
Chris
On Wed, 26 Jan 2005 11:50:46 -0800, snacktime <[EMAIL PROTECTED]> wrote:
> I'm trying to figure out why the following code transforms ascii STX
> (control-b) into "\x82". The perl module I use returns a value
I'm trying to figure out why the following code transforms ascii STX
(control-b) into "\x82". The perl module I use returns a value of
"^B", and that is also what the application I am communicating with
expects to see. Some ascii characters such as FS and GS come through
fine, but STX and ETX get
On Sun, 23 Jan 2005 21:00:25 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote:
> Peter Hansen wrote:
> > snacktime wrote:
> >> Is there a module that sets the parity of a string?
> >
> > As to the specific question: a module is not really required.
>
> But here's one for you anyway. It raises an exc
Peter Hansen wrote:
> snacktime wrote:
> > Is there a module that sets the parity of a string? I have an
> > application that needs to communicate with a host using even parity
> > So what I need is before sending the message, convert it from space
to
> > even parity. And when I get the respons
Peter Hansen wrote:
snacktime wrote:
Is there a module that sets the parity of a string?
As to the specific question: a module is not really required.
But here's one for you anyway. It raises an exception if any
input character is non-ASCII, otherwise when you call set_parity()
with a string and
snacktime wrote:
Is there a module that sets the parity of a string? I have an
application that needs to communicate with a host using even parity
So what I need is before sending the message, convert it from space to
even parity. And when I get the response I need to convert that from
even to s
On Sun, 23 Jan 2005 23:52:29 +0100, Fredrik Lundh
<[EMAIL PROTECTED]> wrote:
> "snacktime" wrote:
>
> > Is there a module that sets the parity of a string? I have an
> > application that needs to communicate with a host using even parity
> > So what I need is before sending the message, convert i
"snacktime" wrote:
> Is there a module that sets the parity of a string? I have an
> application that needs to communicate with a host using even parity
> So what I need is before sending the message, convert it from space to
> even parity. And when I get the response I need to convert that from
10 matches
Mail list logo