* luca72:
i get a string from a web server and i save it in to a file, that i open the file and i read the string: the string looks like : http://lhti.gs/JKBTYD after the read i use webbrowser open (sting), but i get the error because at the end of the string are added '%0D%0A', and if i ask for the len of the sting it include also the"'%0D%0A". My question is how i can cut the last part of the string if it is every time different?
Try rtrim. Cheers & hth., - Alf -- http://mail.python.org/mailman/listinfo/python-list