while (a=b()) ...
Aahz Maruch
aahz at netcom.com
Mon May 10 16:22:53 EDT 1999
In article <slrn7je3v3.v7t.scott at chronis.pobox.com>,
scott cotton <scott at chronis.pobox.com> wrote:
>
>while (c=curs.fetchone(); c):
>
>is not redundant, nor does it have the '=' != '==' problem.
What you really want is this:
class Foo :
....
curs=Foo()
while curs.fetchone() :
print curs.value()
--
--- Aahz (@netcom.com)
Hugs and backrubs -- I break Rule 6 <*> http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het
"In the end, outside of spy agencies, people are far too trusting and
willing to help." -- Ira Winkler
More information about the Python-list
mailing list