They are called Python Logic Short Circuits.

A good way to remember this is here

http://uthcode.appspot.com/blog/2011/07/Python-Logic-short-circuits#comment-266357377

For your other question, an empty list is always fast.

-- 
Senthil

On Tue, Jan 10, 2012 at 10:28:43PM +0530, Ganesh Kumar wrote:
> 
> Did I learn something today? If not, I wasted it.

(Don't be so hard on yourself. :) )
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to