Re: [sqlalchemy] Where to use and vs and_()

2016-02-17 Thread Jonathan Vanasco
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

Re: [sqlalchemy] Where to use and vs and_()

2016-02-17 Thread Simon King
On Wed, Feb 17, 2016 at 7:46 AM, Krishnakant wrote: > Hello all, > The subject might have made my problem already clear. > So I am unclear about when I should use the normal Python "and " vs the > sqlalchemy "and_" while writing where, having or similar queries including

[sqlalchemy] Where to use and vs and_()

2016-02-16 Thread Krishnakant
Hello all, The subject might have made my problem already clear. So I am unclear about when I should use the normal Python "and " vs the sqlalchemy "and_" while writing where, having or similar queries including joins. I have tryed understanding this but may be I have overlooked some thing.