Get variable type
Asked by
Paul Bellamy
This should be a simple question; forgive me if this is in the docs somewhere but I've searched around and cant find it.
I would like to know how to get the type of a variable. In vanilla python, I can do something like this:
x = "foo"
y = type(x)
print(y.__name__)
and it will print:
'str'
So in vanilla python I can use the type() function to check variable type for if statements and so forth. However, obviously in Sikuli "type()" is reserved for typing on the keyboard. Can i still access the original "type()" in Sikuli?
Thanks,
Paul
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Paul Bellamy
- Solved:
- Last query:
- Last reply:
To post a message you must log in.