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

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
Helper for looping (particularly in templates)

Use this like::

    for loop, item in looper(seq):
        if loop.first:
            ...

src/m/a/MapProxy-1.6.0/mapproxy/util/ext/tempita/__init__.py   MapProxy(Download)
import tokenize
from cStringIO import StringIO
from mapproxy.util.ext.tempita._looper import looper
from mapproxy.util.ext.tempita.compat3 import bytes, basestring_, next, is_unicode, coerce_text
 

src/m/a/mapproxy-HEAD/mapproxy/util/ext/tempita/__init__.py   mapproxy(Download)
import tokenize
from cStringIO import StringIO
from mapproxy.util.ext.tempita._looper import looper
from mapproxy.util.ext.tempita.compat3 import bytes, basestring_, next, is_unicode, coerce_text