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

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/t/r/trollius-0.2/asyncio/selector_events.py   trollius(Download)
try:
    import ssl
    from .py3_ssl import (
        wrap_ssl_error, SSLContext, BACKPORT_SSL_CONTEXT, SSLWantReadError,
        SSLWantWriteError)
                    # Python older than 3.4
                    sslcontext = SSLContext(ssl.PROTOCOL_SSLv23)
                    if not BACKPORT_SSL_CONTEXT:
                        sslcontext.options |= ssl.OP_NO_SSLv2
                        sslcontext.set_default_verify_paths()