Hi,
Is there a more elegant way of getting a list of attributes corresponding to a list of objects than the code below? Thanks.
Suppose Foo() is a object with attribute bar... Regards, Faheem. dbstring = ... from dbschema import Foo from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker db = create_engine(dbstring) metadata.bind = db metadata.create_all() Session = sessionmaker() session = Session() print [f.bar for f in session.query(Foo).all()] -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.