One of your variables (e.g. unchanged_count, higher_count, lower_count, secs) is an integer and your method expects a sequence (iterable) value.
Examples of iterable values: 1. str 2. unicode 3. list 4. tuple 5. xrange and range On Thu, Oct 21, 2010 at 7:42 AM, Richard D. Moores <rdmoo...@gmail.com>wrote: > Traceback (most recent call last): > File "c:\P26Working\test_urllib2_21a.py", line 148, in <module> > unchanged_count, higher_count, lower_count, secs = > sleep_seconds_control(unchanged_count, higher_count, lower_count, > secs) > TypeError: 'int' object is not iterable > > I'm working on a script that keeps track of the USD -> Japanese Yen > exchange rate. I'm experimenting with adding functionality that > changes the seconds to sleep between web scrapes, depending on > consecutive outputs of no change in the exchange rate. Please see the > code at <http://tutoree7.pastebin.com/KWmdk8jb> > > I'm at a loss as to what the error means. > > Thanks, > > Dick Moores > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > -- Eloy Zuniga Jr. www.eloyz.com
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor