Alan Gauld wrote at 04:38 10/5/2005:
> > how to use strip just once to get rid of both kinds of quotes, single 
> and
> > double. It seems necessary to do it something like this:
>
>JUst escape the quote character:
>
>s.strip('\'"')

That did it!

Thanks,

Dick Moores

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

Reply via email to