Re: [Sikuli-driver] [Question #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?

2015-04-25 Thread RaiMan
Question #265864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265864

Status: Open => Answered

RaiMan proposed the following answer:
Python !!!

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?

2015-04-25 Thread eduardobedoya
Question #265864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265864

Status: Answered => Open

eduardobedoya is still having a problem:
Sometimes you store a list as a string in order to apply regex to it,
but then how you realize if it is string or a list
also I watched in some Tutorial, someway to display all the values of the 
current variables in screen.

I have tried to read this...
http://stackoverflow.com/questions/836387/how-can-i-tell-if-a-python-variable-is-a-string-or-a-list
and this...
http://stackoverflow.com/questions/922774/check-if-input-is-a-list-tuple-of-strings-or-a-single-string
I just cant get them to work.

Could RainMan you please suggest a link???

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?

2015-04-25 Thread eduardobedoya
Question #265864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265864

eduardobedoya gave more information on the question:
Sometimes you store a list as a string in order to apply regex to it,
but then how you realize if it is string or a list
also I watched in some Tutorial, someway to display all the values of the 
current variables in screen.
Is it possible to have a kinda variable values check in sikuli?

I have tried to read this...
http://stackoverflow.com/questions/836387/how-can-i-tell-if-a-python-variable-is-a-string-or-a-list
and this...
http://stackoverflow.com/questions/922774/check-if-input-is-a-list-tuple-of-strings-or-a-single-string
I just cant get them to work.

Could RainMan you please suggest a link???

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?

2015-04-25 Thread RaiMan
Question #265864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265864

Status: Open => Answered

RaiMan proposed the following answer:
http://stackoverflow.com/questions/922774/check-if-input-is-a-list-
tuple-of-strings-or-a-single-string

isinstance()

https://docs.python.org/2/library/functions.html#isinstance

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?

2015-04-25 Thread eduardobedoya
Question #265864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265864

Status: Answered => Solved

eduardobedoya confirmed that the question is solved:
Thanks RaiMan, that solved my question.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?

2015-04-25 Thread eduardobedoya
Question #265864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265864

Status: Solved => Open

eduardobedoya is still having a problem:
Is there any way to display all current variables values in IDLE, I could swear 
I saw something like that in a Python Tutorial, Ijust can recall.
Thanks Advanced.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?

2015-04-25 Thread RaiMan
Question #265864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265864

Status: Open => Answered

RaiMan proposed the following answer:
look for the list globals and locals

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?

2015-04-25 Thread RaiMan
Question #265864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265864

RaiMan proposed the following answer:
look for the list globals and locals

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?

2015-04-25 Thread eduardobedoya
Question #265864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265864

Status: Answered => Solved

eduardobedoya confirmed that the question is solved:
Thanks RaiMan, that solved my question.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?

2015-04-26 Thread eduardobedoya
Question #265864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265864

Status: Solved => Open

eduardobedoya is still having a problem:
Sorry,
I just don't get it
I have read this part
isinstance(object, classinfo) I read paragraph with Local n Global
but it doesn't provide examples

what parameters have to be put in object, classinfo in here...
isinstance(object, classinfo)???

Sorry
isn't there any other tutorial site with examples?

It is just that that part off manual talks about tuples, clasess
I have read some about those, for the moment I just use variables n lists, and 
I would like to check its values when running sikuli, and tell when something 
is a string, or an integer, or a list, in order to test.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?

2015-04-26 Thread eduardobedoya
Question #265864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265864

eduardobedoya gave more information on the question:
Sorry,
I just don't get it
I have read this part...
isinstance(object, classinfo) I read the paragraphs that talk about Local n 
Global
but it doesn't provide examples

what parameters have to be put in 'object, classinfo' in here...
isinstance(object, classinfo)???

Sorry
isn't there any other tutorial site with examples?

That part off manual talks about tuples, clasess. I have read some about
those, but, for the moment I just use variables n lists, and I would
like to check its values when running sikuli, and tell when something is
a string, or an integer, or a list, in order to test.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?

2015-04-26 Thread RaiMan
Question #265864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265864

Status: Open => Answered

RaiMan proposed the following answer:
I made a faq, that should explain some of your doubts:
faq 2711

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?

2015-04-26 Thread eduardobedoya
Question #265864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265864

Status: Answered => Solved

eduardobedoya confirmed that the question is solved:
Thanks RaiMan, that solved my question.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?

2015-04-26 Thread eduardobedoya
Question #265864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265864

eduardobedoya posted a new comment:
tahnks so much RaiMan!

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?

2015-05-01 Thread eduardobedoya
Question #265864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265864

eduardobedoya posted a new comment:
In python there is a special function you can use... dir()
it shows all functions and variables that are store in a py file
I have notice that in Sikuli dir() doesn't show anything,
if I type... print dir() it shows a lot of variables, I guess those are sikuli 
system variables.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #265864]: How to tell if a variable is a string or a list, or etc in Sikuli?

2015-05-01 Thread eduardobedoya
Question #265864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265864

eduardobedoya posted a new comment:
In python there is a special function you can use... dir()
it shows all functions and variables that are store in a py file
I have notice that in Sikuli if I type... dir() doesn't show anything,
however if I type... print dir() it shows a lot of variables, I guess those are 
sikuli system variables.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp