October 15th, 2004, 01:09 PM
Nope, there isn't a function. Just treat the string as if it were a list:
str = "This is a test"
str2 = str[2:10]
See? Who needs a function when python has a built-in operator for this
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne