-On [20080812 15:16], Daniel Mahoney ([EMAIL PROTECTED]) wrote:
>cursor=db.cursor()
>cursor.execute(sql)
>while (1):
>       row = cursor.fetchone()
>       if row == None:
>               break
>       combined = ', '.join(row)

Why not something like:

for row in cursor.fetchall():
    combined = ', '.join(row)

-- 
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B
Focus on your one purpose...
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to