while row = c.fetchone(): # syntax error???

Thomas Gagne tgagne at ix.netcom.com
Thu Aug 10 23:20:29 EDT 2000


At the top of a while, the value of the function c.fetchone() is what I want
to evaluate, but I need to save the return value.  Whenever I try to code this
I get a syntax error--python doesn't seem to like the assignment in the
conditional.  No amount of parens seem to make a difference.

Help?




More information about the Python-list mailing list