From: aahz at netcom.com (Aahz Maruch)
Date: Mon, 10 May 1999 20:22:53 GMT
Subject: while (a=b()) ...
References: <XFMail.990429164839.nathan@islanddata.com> <slrn7jbpbi.rao.scott@chronis.pobox.com> <3736ED9B.515704AF@starmedia.net> <slrn7je3v3.v7t.scott@chronis.pobox.com>
Message-ID: <aahzFBJ9y5.K1E@netcom.com>
X-UID: 1715                                               

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




