metaperl wrote:

> .... The above program started out as a list of dictionaries, but I
> like the current approach much better.

There is even a common idiom for this...

class Record(object):
     def __init__(self, **kwargs):
         self.__dict__.update(kwargs)

This way you can use

     user = Record(name="Andrea Griffini", email="[EMAIL PROTECTED]")

and then access the fields using user.name syntax

HTH
Andrea
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to