Chopping off spaces at both ends
- From: Madhusudan Singh <spammers-go-here@xxxxxxxxxxxx>
- Date: Sun, 07 Aug 2005 13:06:54 -0400
Hi
I am a newbie to python and am using it to interface some of my lab
equipment.
How does one get rid of spaces at both ends of a string ? A little like the
trim() intrinsic in fortran 95.
One of my instruments is returning a string that has one or more blanks in
it, and that is complicating string matching tests in one of my functions.
Thanks.
.
- Follow-Ups:
- Re: Chopping off spaces at both ends
- From: Tim Roberts
- Re: Chopping off spaces at both ends
- From: Kay Schluehr
- Re: Chopping off spaces at both ends
- Prev by Date: amazon web services/api...
- Next by Date: Re: Chopping off spaces at both ends
- Previous by thread: amazon web services/api...
- Next by thread: Re: Chopping off spaces at both ends
- Index(es):
Relevant Pages
|