Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
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/b/e/bench-HEAD/benchmark.py   bench(Download)
import random, time, sys
from multiprocessing import Pool, Process, Pipe, JoinableQueue
from config import (NUM_WORKERS, PLAYERS_PER_WORKER, NUM_PLAYERS, DATABASE, 
                   SHOW_GAME_STATISTICS, GAME_ENABLE_LOG, TOTAL_TIME, 
                   SAMPLE_INTERVAL)
 
        db.start_game(me, other)
        if GAME_ENABLE_LOG:
            db.log(me, 'challenged ' + str(other))
    elif len(games) > 0:
        if random.random() < min((float(game['turn']) / 50) ** 3, .8):
            db.end_game(me, game)
            if GAME_ENABLE_LOG:
                db.log(me, 'won')
        else:
            # Otherwise, we advance the game by one step.
            db.make_move(me, game)
            if GAME_ENABLE_LOG: