Page 1 of 1

String slice issue?

PostPosted: Sun May 24, 2009 9:43 pm
by arisawa
String slice issue?
can not String slice 'step'.
s = "ThisIsTestString"
print s[0:10:2]

and
print s[0::2]

can not omit 'stop'.

Re: String slice issue?

PostPosted: Mon May 25, 2009 7:51 am
by Charles
Steps other than 1 are not currently supported. The syntax is there, but not the run-time.