[BangPypers] Truth Tests (bool)

Senthil Kumaran senthil at uthcode.com
Tue Jan 10 18:15:45 CET 2012


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. :) )


More information about the BangPypers mailing list