Special Characters

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Thu Mar 1 02:04:18 CET 2007


En Tue, 27 Feb 2007 22:56:15 -0300, Sick Monkey <sickcodemonkey at gmail.com>  
escribió:

> I found out that when I was reading the file, there
> were additional blank spaces being appended to the value.
>
> To correct the issue, I just had to dp
>     varName = msInfo[0].strip()
>     finName = varName.strip()

Only one strip() is enough, the second call does nothing, strip is  
idempotent.

-- 
Gabriel Genellina




More information about the Python-list mailing list