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

All Samples(23)  |  Call(11)  |  Derive(0)  |  Import(12)

src/d/j/dj.chain-0.9.2/src/dj/chain/tests.py   dj.chain(Download)
    def test_chain_simple(self, c=None):
        from dj.chain import chain
        if not c:
            c = chain((1, 2), [3, 4], "56")
            c.xform = lambda v: int(v)
    def test_chain_simple_copy(self):
        from dj.chain import chain
        c = chain((1, 2), [3, 4], "56")
        c.xform = lambda v: int(v)
        c.xfilter = lambda v: int(v) % 2 == 0
        c2 = c.copy(*c.iterables)
        self.test_chain_simple(c2)
 
    def test_chain_sorted(self, c=None):
        from dj.chain import chain

src/l/c/lck.django-0.8.10/src/lck/django/common/__init__.py   lck.django(Download)
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext as _
from dj.chain import chain as lazy_chain # compatibility with lck.django < 0.8
from dj.choices import Language
from lck.cache import memoize

src/k/i/kitdjango-HEAD/src/lck/django/common/__init__.py   kitdjango(Download)
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext as _
from dj.chain import chain as lazy_chain # compatibility with lck.django < 0.8
from dj.choices import Language
from lck.cache import memoize