johnf wrote:
> On Saturday 28 March 2009 08:13:50 am Paul McNett wrote:
>
>
>> ds = []
>> for staff in crs.fetchall():
>> dsentry = {'ledger': staff[0],
>> 'salarytotal': staff[1],
>> 'advancetotal': staff[2],}
>> ds.append(dsentry)
>> return ds
>>
>> Paul
>
> Why the last ',' in 'advancetotal': staff[2],} ???
Habit. I like to allow for easy future expansion.
Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]