Re: Using namedtuple with sqlite, surely it can do better than the example

2014-09-30 Thread Mark Lawrence
On 30/09/2014 22:32, c...@isbd.net wrote: In the namedtuple documentation there's an example:- EmployeeRecord = namedtuple('EmployeeRecord', 'name, age, title, department, paygrade') import sqlite3 conn = sqlite3.connect('/companydata') cursor = conn.cursor() cursor.ex

Re: Using namedtuple with sqlite, surely it can do better than the example

2014-09-30 Thread Peter Otten
c...@isbd.net wrote: > In the namedtuple documentation there's an example:- > > EmployeeRecord = namedtuple('EmployeeRecord', 'name, age, title, > department, paygrade') > > import sqlite3 > conn = sqlite3.connect('/companydata') > cursor = conn.cursor() > cursor.execute(

Using namedtuple with sqlite, surely it can do better than the example

2014-09-30 Thread cl
In the namedtuple documentation there's an example:- EmployeeRecord = namedtuple('EmployeeRecord', 'name, age, title, department, paygrade') import sqlite3 conn = sqlite3.connect('/companydata') cursor = conn.cursor() cursor.execute('SELECT name, age, title, department, paygr