Forums

String slice issue?

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

String slice issue?

Postby arisawa » Sun May 24, 2009 9:43 pm

String slice issue?
can not String slice 'step'.
s = "ThisIsTestString"
print s[0:10:2]

and
print s[0::2]

can not omit 'stop'.
arisawa
 
Posts: 51

Re: String slice issue?

Postby Charles » Mon May 25, 2009 7:51 am

Steps other than 1 are not currently supported. The syntax is there, but not the run-time.
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 18 guests

cron