[Tutor] Best way to strip string string padded with nulls

Patrick K. O'Brien pobrien@orbtech.com
Wed, 6 Jun 2001 13:17:15 -0500


Yeah. <grin> Your suggestion would work if the padding were all nulls, but
Goldmine manages to send back some random junk as well. So I do need to just
cut it short at the very first null. Thanks anyway.

---
Patrick K. O'Brien
Orbtech
"I am, therefore I think."

-----Original Message-----
From: tutor-admin@python.org [mailto:tutor-admin@python.org]On Behalf Of
Remco Gerlich
Sent: Wednesday, June 06, 2001 1:01 PM
To: tutor@python.org
Subject: Re: [Tutor] Best way to strip string string padded with nulls

Hmm, seems I solved the wrong problem *again*. You want to delete the stuff
after the nulls as well. I think that last line of code you have there is
the best option.

--
Remco Gerlich

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor