trim start and trailing space chars from string

John Machin sjmachin at
Sat Sep 15 12:33:52 CEST 2007

On Sep 15, 7:24 pm, Konstantinos Pachopoulos <kostaspa... at>
> Hi,
> is there something corresponding to the java String.trim() method, ie
> trim start and trailing space/tab chars from string?
> say convert " asdf   "  to "asdf"?

More information about the Python-list mailing list