← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #168892]: Using findAll(): 'NoneType' object is not iterable? --- only one iteration possible!

 

Question #168892 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168892

Zubin Sethna requested more information:
I'm working in Jruby and have come across a similar problem. Basically I
do a findAll e.g

myMatches = someRegion.findAll(somePattern)

If I call the "count" method on myMatches first then I cannot iterate
through the matches later. It seems that the count method actually uses
the iterator so I can't use it later!

Is this correct and how do I get the number of matches? Do I have to
copy into an array first?


Thanks

Zubin

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