← Back to team overview

sikuli-driver team mailing list archive

[Question #170925]: Get variable type

 

New question #170925 on Sikuli:
https://answers.launchpad.net/sikuli/+question/170925

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

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.