← Back to team overview

sikuli-driver team mailing list archive

[Question #265291]: some value of the variables changed with no reason

 

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

Look at the code directly:
x = Region(find(picture1))
r1 = x
r2 = x

y1 = Region(find(picture2))
y2 = Region(find(picture3))
print y1.y,y2.y

r1.y = y1.y
print r1.y
r2.y = y2.y
print r1.y

result: 
481 499
481
499

After assignment to r2.y, why the value of r1.y changed to r2.y? And if there's r3,r4, all value will change to r4.y.
 



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