sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #49921
Re: [Question #677269]: When using a for loop for a fixed list, type() is only the first letter
Question #677269 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677269
RaiMan posted a new comment:
Python generally is not strongly typed, hence type is evaluated from context on assignment.
... and variables can change their type at any time.
BTW: ("foo",) is not a list but a tuple and immutable.
The problem: the brackets ( ) syntactically are expression delimiters
and the tuple itself is "foo",
a list (mutable) is defined as:
aList = ["foo"]
or
aList = []
aList.append["foo"]
please consult the Python docs or a basic tutorial if you plan to do more complex things.
Be aware: the interpreter is Jython 2.7 (since SikuliX is Java based)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.