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

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

        def all(sequence):
    for element in sequence:
        if not element:
            return False
    return True

src/a/t/atropine-0.2/atropine/special.py   atropine(Download)
from common import any, all, Collect, CannotResolve
def collect(key, onlytext=False, alltext=False):
    a = (onlytext, alltext)
    assert any(a) and not all(a)

src/a/t/atropine-0.2/atropine/check.py   atropine(Download)
from common import CannotResolve, all
from BeautifulSoup import Null
def equal(actual, expected):
    if actual is Null:
def tagattributes(atropine, attrs):
    return all(atropine.current._matches(atropine.current.get(k), v)
                    for (k, v) in attrs.iteritems())
def allchildren(atropine, f):
    return all(map(f, atropine.current.contents))
def alltext(atropine, something):
    return all(atropine.current._matches([chunk], something)
                for chunk in atropine.current.recursiveChildGenerator()
                    if atropine.istextnode(chunk))

src/i/n/infogami-HEAD/infogami/infobase/writequery.py   infogami(Download)
import common
from common import pprint, any, all
import web

src/i/n/infogami-HEAD/infogami/infobase/readquery.py   infogami(Download)
import common
from common import all, any
import web
import re
import _json as simplejson