On Tue, Apr 29, 2008 at 10:33 AM, Victor Subervi
<[EMAIL PROTECTED]> wrote:
> Hi;
>
>
> why doesn't this work?
> It never increments z! Yet, if I print z, it will increment and change the
> bgcolor! Why?!

Are you only trying to "print  '<tr bgcolor="%s">\n' % bg" once, or
for each iteration of the loop?

It might have been the way your message was formatted, but the
try/except look like it's out of the for loop. So the print will only
run once, after the loop has gone through all d's in id.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to