I am using Jython for wsadmin scripting for one of my tasks.
-c "test = 'project' " +
-c "edit = test[1:]" +
-c "print edit"
However when I execute the piece of code , I get the following error
Traceback (innermost last):
(no code object) at line 0
File "<input>", line 1
edit = test[1:]
¬
SyntaxError: Lexical error at line 1, column 12. Encountered: "\u00dd" (221),after : ""
Looks like the square brackets are not being accepted are there any other ways to obtain a substring for a string in Jython?