sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #23606
[Bug 1271783] Re: type namespace overridden in python
Awesome! I couldn't remember the __builtin__! Thanks.
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1271783
Title:
type namespace overridden in python
Status in Sikuli:
Won't Fix
Bug description:
******* workaround, since this will not be fixed
Version 1.1.0 will have an additional write() that can be used instead
of type() and has additional improvements.
Until then you can use
if isinstance(x, str):
print "it is a string"
else:
print "x is not what I expected"
------------------------------------------------
if you create a library of sikuli code in python and you call the
'type' method, it will try to type on the screen and woln't give you
the type of the object. As this is base python code, maybe you should
rename the type method?
from sikuli import *
x = 'asdf'
print type(x)
#should print out "str" not try to type on screen.
mac/mountain lion
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1271783/+subscriptions
References