Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(249)  |  Call(193)  |  Derive(0)  |  Import(56)
bool(x) -> bool

Returns True when the argument x is true, False otherwise.
The builtins True and False are the only two instances of the class bool.
The class bool is a subclass of the class int, and cannot be subclassed.

src/u/l/ulipad-HEAD/modules/makemenu.py   ulipad(Download)
import copy
from modules import common
from Debug import debug, DEBUG
 
disableimage = False
def printmenu(m, imagelist=None):
    if not DEBUG: return
    debug.info('[makemenu] Menu listing...')
    if m.has_key(None):
        for order, idname, caption, kind, func, message in m[None]:
def printsubmenu(m, space,idname):
    if not DEBUG: return
    for order, idname, caption, kind, func, message in m[idname]:
        debug.info('%s%s  %s\t"%s"' % (space, order, idname, caption))
        if m.has_key(idname):