* 'struct-like' list *
Rene Pijlman
reply.in.the.newsgroup at my.address.is.invalid
Mon Feb 6 12:15:39 EST 2006
Ernesto:
>1. How to search for the keywords "Name:", "Age:", etc. in the file...
You could use regular expression matching:
http://www.python.org/doc/lib/module-re.html
Or plain string searches:
http://www.python.org/dev/doc/devel/lib/string-methods.html
>2. How to implement some organized "list of lists" for the data
>structure.
You could make it a list of bunches, for example:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52308
Or a list of objects of your custom class.
--
René Pijlman
More information about the Python-list
mailing list