Amita Ekbote wrote:
>  Hello,
> 
> I am retrieving values from a database in the form of a dictionary so
> I can access the values as d['column'] and I was wondering if there is
> a way to convert the hash to a struct like format so i can just say
> d.column. Makes it easier to read and understand.
> 
> Thanks
> Amita
> 


I just remembered something...

If you used python > 2.6, you may also look at namedtuple
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to