[Tutor] advice on creating and working with a complex data structure

bob gailer bgailer at gmail.com
Mon Jul 20 21:13:10 CEST 2009


Serdar Tumgoren wrote:
> Hi everyone,
> I'm working with a database of campaign finance filings, and I'm
> trying to create a data structure that captures the fact that:
>   - there can be multiple races
>   - races can have multiple candidates
>   - candidates can have multiple campaign committees
>   - campaign committees can file multiple reports
>
> I'm trying to pull these records from a database and output them to an
> HTML file in sorted order.
I suggest using the ORDER BY SQL Clause rather than trying to sort it in 
Python.

[snip]
-- 
Bob Gailer
Chapel Hill NC
919-636-4239


More information about the Tutor mailing list