UnrealEd wrote:
>>while 1:
>> row = read_database_row()
>> if not row:
>>   break
>> process_row(row) 

Kijk ook even in de database API die je gebruikt. Redelijke kans dat het 
een iterator functie is. En dan kan je gewoon het volgende doen:

for row in dabase.readRows():
     print row

Net zoiets als in "for line in file.readlines():".

Reinout

-- 
Reinout van Rees                         [EMAIL PROTECTED]
http://vanrees.org/weblog/                  http://zestsoftware.nl/
"Military engineers build missiles. Civil engineers build targets."
_______________________________________________
Python-nl mailing list
Python-nl@python.org
http://mail.python.org/mailman/listinfo/python-nl

Antwoord per e-mail aan