while (a=b()) ...

Reimer Behrends behrends at cse.msu.edu
Thu Apr 29 19:51:39 EDT 1999


Marco Mariani (m.mariani at imola.nettuno.it) wrote:
> Hi all language lawyers!
> 
> Which one is more ugly?
[...]

Both.

> Is there an elegant way?

while curs.fetchone():
  print curs.item

Remember that objects have state.

			Reimer Behrends




More information about the Python-list mailing list