> Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "kent.py", line 11, in __iter__ > if stamp.startswith(date): > NameError: global name 'date' is not defined > > How does __iter__ know about date? Should that be self.date? >
Yes. self.date is set in the constructor.
_______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
