Product SiteDocumentation Site

5.3. Truth value testing

The elegant way to test Truth values is like
if x:
    pass

Don't do this

if x == True:
    pass