Convert hash to struct

Amita Ekbote amita.ekbote at gmail.com
Fri Jun 19 14:17:24 EDT 2009


 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

-- 
Amita Ekbote



More information about the Python-list mailing list