Hello,
Are there any plans to make the attributes of selected results more
dictionary like?
Currently when you get a record via sqlalachemy
You have an option of
Getting and setting attributes by getattr and setattr.
myresults.c.keys()
then to get the values you have to:
for column in myresults.c.keys()
print getattr(myresults,column)
vs
This could be so much simpler if we used dictionary like structure.
for column in myresults.c.keys()
print myresults[column]
And make the function
myresults.c.values() also available?
Lucas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---