you can do something like what Jose mentioned, where you construct just the WHERE portion of the query using a list, which can also be run into select() as:
query.select(and_(*clauses)) or, you can use the SelectResults extension, where you grow the query by just saying filter(): query = SelectResults(sess.query(cls)) query = query.filter(table.c.x==5) query = query.filter(table.c.y==7) etc. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---