I want to ensure that the url ends with a '/', now I have to do thisa like below.
url = url + '' if url[-1] == '/' else '/'

Is there a better way?
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to