Books Database

Paddy McCarthy paddy3118 at netscape.net
Thu Mar 6 20:04:12 CET 2003


Eliran Gonen <eg at rootshell.be> wrote in message news:<mailman.1046702775.28426.python-list at python.org>...
> Hello !
> 
> I want to ask you what do you think is the best way to keep
> a list of books with other data (such as year and author) in a
> file ?
> 
> And what way should be used to parse it ?
> 
> Is something like:
> 
> <.database>
> 
> name=Example
> author=Somedood
> year=1969
> 
> name=Wuffy
> author=Puffy
> year=2010
> 
> ....etc
> </.databse>
> 
> Is alright ?
> 
> Thanks !


You've already got some good answers, I'd second YAML and also ask you to take a
look at PYX, (http://www-106.ibm.com/developerworks/xml/library/x-matters17.html)
It is easier to write than XML but can express what XML can. It also has Python 
support.

Cheers, Pad.




More information about the Python-list mailing list