On Wednesday, February 17, 2016 at 4:34:35 AM UTC-5, Simon King wrote:
>
>
>     (expr1 == expr2) & (expr3 == expr4)
>

you usually won't need to & or and_ though.

filter automatically "and"s a list.

    .filter(expr1 == expr2, expr3 == expr4)

the only you need to use `and_` is when doing more complicated queries and 
the "and" is nested.

    .filter(or_(expr1 == expr2,
                   and_(expr2 == expr3,
                           expr3 == expr4
                           ))

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to