In article <mailman.1627.1281018398.1673.python-l...@python.org>,
Chris Hare  <ch...@labr.net> wrote:
>
>cursor.execute('select * from net where NetNumber > 0')

Unless your table is guaranteed to never change layout, I suggest that
instead listing fields is a Good Idea:

cursor.execute('select netNumber, netType, .... from net where NetNumber > 0')

Then the tuple unpack suggested by other posters will never fail.
-- 
Aahz (a...@pythoncraft.com)           <*>         http://www.pythoncraft.com/

"...if I were on life-support, I'd rather have it run by a Gameboy than a
Windows box."  --Cliff Wells
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to