From: m.mariani at imola.nettuno.it (Marco Mariani)
Date: Fri, 30 Apr 1999 00:01:41 GMT
Subject: while (a=b()) ...
Message-ID: <19990430000141.A5867@shalott>
X-UID: 232                                                  

Hi all language lawyers!

Which one is more ugly?



=====

c = curs.fetchone()
while c:
        print c
        c = curs.fetchone()

=====

while 1:
	c = curs.fetchone()
	if c:
		print c
	else:
		break

=====

Is there an elegant way?


while curs.fetchone()
	print $_


:-)))



-- 
"If you're going to kill someone there isn't much reason to get all worked
 up about it and angry.  Any discussions beforehand are a waste of time.
 We need to smile at Novell while we pull the trigger."

 - Jim Allchin, Microsoft corp. -




