View Single Post
Old 07-30-2010, 02:50 PM   #2369
sark666
Connoisseur
sark666 began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Jul 2010
Device: colognesbook
Quote:
If you use string, you need to import it. You don't need it, however. Try:
split1 = url.split("/")
instead of
split1 = string.split(url,"/")
Haivng limited knowledge of python (but learning) I'm not sure what you mean if I use string I need to import it. I'll try without.

You also mentioned to try print to make sure it's chopping up correctly, well I tried in a python editor previously and it's chopping up the string as I expected. I'm just not passing it back properly.
sark666 is offline