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

All Samples(20)  |  Call(0)  |  Derive(0)  |  Import(20)
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/f/j/fjord-HEAD/vendor/packages/Babel/babel/messages/catalog.py   fjord(Download)
from babel.messages.plurals import get_plural
from babel.util import odict, distinct, LOCALTZ, FixedOffsetTimezone
from babel._compat import string_types, number_types, PY2, cmp
 
__all__ = ['Message', 'Catalog', 'TranslationError']
 
 
if PY2:
    def _parse_header(header_string):
        # message_from_string only works for str, not for unicode

src/m/i/microblog-HEAD/flask/lib/python2.7/site-packages/babel/messages/catalog.py   microblog(Download)
from babel.messages.plurals import get_plural
from babel.util import odict, distinct, LOCALTZ, FixedOffsetTimezone
from babel._compat import string_types, number_types, PY2, cmp
 
__all__ = ['Message', 'Catalog', 'TranslationError']
 
 
if PY2:
    def _parse_header(header_string):
        # message_from_string only works for str, not for unicode

src/z/e/ZenPacks.zenoss.OpenStack-HEAD/src/Babel-1.3/babel/messages/catalog.py   ZenPacks.zenoss.OpenStack(Download)
from babel.messages.plurals import get_plural
from babel.util import odict, distinct, LOCALTZ, FixedOffsetTimezone
from babel._compat import string_types, number_types, PY2, cmp
 
__all__ = ['Message', 'Catalog', 'TranslationError']
 
 
if PY2:
    def _parse_header(header_string):
        # message_from_string only works for str, not for unicode

src/b/a/Babel-1.3/babel/messages/catalog.py   Babel(Download)
from babel.messages.plurals import get_plural
from babel.util import odict, distinct, LOCALTZ, FixedOffsetTimezone
from babel._compat import string_types, number_types, PY2, cmp
 
__all__ = ['Message', 'Catalog', 'TranslationError']
 
 
if PY2:
    def _parse_header(header_string):
        # message_from_string only works for str, not for unicode

src/f/j/fjord-HEAD/vendor/packages/Babel/babel/support.py   fjord(Download)
from babel.numbers import format_number, format_decimal, format_currency, \
     format_percent, format_scientific
from babel._compat import PY2, text_type, text_to_native
 
 
                                                          plural, num)
 
    if not PY2:
        ugettext = gettext.NullTranslations.gettext
        ungettext = gettext.NullTranslations.ngettext
        self.domain = domain or self.DEFAULT_DOMAIN
 
    if not PY2:
        ugettext = gettext.GNUTranslations.gettext
        ungettext = gettext.GNUTranslations.ngettext

src/p/r/proofofexistence-HEAD/babel/messages/catalog.py   proofofexistence(Download)
from babel.messages.plurals import get_plural
from babel.util import odict, distinct, LOCALTZ, FixedOffsetTimezone
from babel._compat import string_types, number_types, PY2, cmp
 
__all__ = ['Message', 'Catalog', 'TranslationError']
 
 
if PY2:
    def _parse_header(header_string):
        # message_from_string only works for str, not for unicode

src/m/i/microblog-HEAD/flask/lib/python2.7/site-packages/babel/support.py   microblog(Download)
from babel.numbers import format_number, format_decimal, format_currency, \
     format_percent, format_scientific
from babel._compat import PY2, text_type, text_to_native
 
 
                                                          plural, num)
 
    if not PY2:
        ugettext = gettext.NullTranslations.gettext
        ungettext = gettext.NullTranslations.ngettext
        self.domain = domain or self.DEFAULT_DOMAIN
 
    if not PY2:
        ugettext = gettext.GNUTranslations.gettext
        ungettext = gettext.GNUTranslations.ngettext

src/z/e/ZenPacks.zenoss.OpenStack-HEAD/src/Babel-1.3/babel/support.py   ZenPacks.zenoss.OpenStack(Download)
from babel.numbers import format_number, format_decimal, format_currency, \
     format_percent, format_scientific
from babel._compat import PY2, text_type, text_to_native
 
 
                                                          plural, num)
 
    if not PY2:
        ugettext = gettext.NullTranslations.gettext
        ungettext = gettext.NullTranslations.ngettext
        self.domain = domain or self.DEFAULT_DOMAIN
 
    if not PY2:
        ugettext = gettext.GNUTranslations.gettext
        ungettext = gettext.GNUTranslations.ngettext

src/f/j/fjord-HEAD/vendor/packages/Babel/babel/messages/frontend.py   fjord(Download)
from babel.messages.pofile import read_po, write_po
from babel.util import odict, LOCALTZ
from babel._compat import string_types, BytesIO, PY2
 
 
            # later versions of Babel we want the write_po function to accept
            # text or binary streams and automatically adjust the encoding.
            if not PY2 and hasattr(outfile, 'buffer'):
                catalog.charset = outfile.encoding
                outfile = outfile.buffer.raw

src/m/i/microblog-HEAD/flask/lib/python2.7/site-packages/babel/messages/frontend.py   microblog(Download)
from babel.messages.pofile import read_po, write_po
from babel.util import odict, LOCALTZ
from babel._compat import string_types, BytesIO, PY2
 
 
            # later versions of Babel we want the write_po function to accept
            # text or binary streams and automatically adjust the encoding.
            if not PY2 and hasattr(outfile, 'buffer'):
                catalog.charset = outfile.encoding
                outfile = outfile.buffer.raw

  1 | 2  Next