One of your variables (e.g. unchanged_count, higher_count, lower_count, secs) is an integer and your method expects a sequence (iterable) value.<div><br></div><div>Examples of iterable values:</div><div><ol><li>str</li><li>
unicode</li><li>list</li><li>tuple</li><li>xrange and range</li></ol><div><br></div><div><br><div class="gmail_quote">On Thu, Oct 21, 2010 at 7:42 AM, Richard D. Moores <span dir="ltr">&lt;<a href="mailto:rdmoores@gmail.com">rdmoores@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Traceback (most recent call last):<br>
  File &quot;c:\P26Working\test_urllib2_21a.py&quot;, line 148, in &lt;module&gt;<br>
    unchanged_count, higher_count, lower_count, secs =<br>
sleep_seconds_control(unchanged_count, higher_count, lower_count,<br>
secs)<br>
TypeError: &#39;int&#39; object is not iterable<br>
<br>
I&#39;m working on a script that keeps track of the USD -&gt; Japanese Yen<br>
exchange rate. I&#39;m experimenting with adding functionality that<br>
changes the seconds to sleep between web scrapes, depending on<br>
consecutive outputs of no change in the exchange rate. Please see the<br>
code at &lt;<a href="http://tutoree7.pastebin.com/KWmdk8jb" target="_blank">http://tutoree7.pastebin.com/KWmdk8jb</a>&gt;<br>
<br>
I&#39;m at a loss as to what the error means.<br>
<br>
Thanks,<br>
<br>
Dick Moores<br>
_______________________________________________<br>
Tutor maillist  -  <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Eloy Zuniga Jr.<br><a href="http://www.eloyz.com">www.eloyz.com</a><br>
</div></div>