[Tutor] Logfile multiplexing
Luke Paireepinart
rabidpoobear at gmail.com
Tue Nov 10 15:00:00 CET 2009
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20091110/414809be/attachment.htm>
More information about the Tutor
mailing list