Python Question [SOLVED]

Here’s a simple-ish python question that I couldn’t get a clear answer on from the python documentation that I read:

If I have the following line of code:

if( expression1 or expression2 or expression3):

And expression1 proves true, does the if statement bother to check expression2 or expression3 at all? Or does it simply proceed to execute the following indented block after ignoring expression2 and expression3?

if expression1 or expression2 or expression3: 

will only evaluate the first true one.

That’s what I thought, thanks.

Note that you can easily test these things yourself:

def func():
  print "func() called!"

if True or func():

if False and func():

In this case, func() is never called, so nothing prints.