Newbie: Crazy, but Quick

Cliff Wells logiplexsoftware at earthlink.net
Mon Feb 25 12:15:47 EST 2002


On 23 Feb 2002 08:46:14 -0800
Alan Daniels wrote:

> "Virginia O" <vodine at direct.ca> wrote in message
news:<u7b81629bo9o4a at corp.supernews.com>...
> 
> > If it was upto me I'd just use a simple delimited text file :)
> 
> Or simpler yet, just store the data in one large Python data structure
> (ex: a tuple of dictionaries, a tuple of tuples, etc), and just have
> your program import it as needed.
> 
> You can always move to a true database later if this doesn't scale,
> or if you one day need relational-style joins rather than simple
> flat-file access.

This might not be a bad solution.  Since SQL queries in Python are
typically returned as tuples or lists, it would be fairly trivial to
replace the file save/restore functions with a SQL backend at a later date
if needed without affecting program logic much.

-- 
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308  (800) 735-0555 x308




More information about the Python-list mailing list