joe-greenawalt / skulpt

Automatically exported from code.google.com/p/skulpt
Other
0 stars 0 forks source link

String methods not implemented #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Code you're trying to run:
"   hello   ".strip()
"   hello   ".lstrip()
"   hello   ".rstrip()
"   hello   ".partition("l")
"   hello   ".rpartition("l")
"   HELlo   ".lower()
"   heLLO   ".upper()
"hi there".split(" ")

What does "real" Python output?
'hello'
'hello   '
'   hello'
('   he', 'l', 'lo   ')
('   hel', 'l', 'o   ')
'   hello   '
'   HELLO   '
['hi', 'there']

What browser are you using? On what operating system?
Firefox 3.6.12 on OS X.6

Please provide any additional information.

Original issue reported on code.google.com by carnioja...@gmail.com on 29 Nov 2010 at 4:41

GoogleCodeExporter commented 9 years ago
Thanks for the report, these examples work now. The strips do not currently 
accept a "chars" argument however. Please open a new issue on that if you'd 
like that fixed.

Original comment by sgraham on 30 Nov 2010 at 5:48