Set parity of a string

snacktime snacktime at gmail.com
Sun Jan 23 18:50:50 EST 2005


On Sun, 23 Jan 2005 23:52:29 +0100, Fredrik Lundh
<fredrik at pythonware.com> 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 response I need to convert that from
> > even to space parity.
> 
> umm.  shouldn't the communication library do this for you?
> 
The communication is an https post, but the host needs the data in
even parity before sending it into their internal systems (this is a
large bank network) and it's up to the client to do the
transformation.

Chris



More information about the Python-list mailing list