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

All Samples(64)  |  Call(0)  |  Derive(0)  |  Import(64)
Add el to beginning of (possibly infinite) sequence seq.

>>> list(cons(1, [2, 3]))
[1, 2, 3]

        def cons(el, seq):
    """ Add el to beginning of (possibly infinite) sequence seq.

    >>> list(cons(1, [2, 3]))
    [1, 2, 3]
    """
    yield el
    for s in seq:
        yield s
        


src/t/o/toolz-HEAD/toolz/itertoolz/__init__.py   toolz(Download)
from .core import (groupby, remove, concat, concatv, mapcat,
                   frequencies, interpose, first, second, nth, take,
                   drop, rest, get, last, merge_sorted, interleave,
                   unique, reduceby, isiterable,
                   isdistinct, cons, iterate, accumulate, sliding_window,

src/o/c/ochDownloader-HEAD/core/ipc/server.py   ochDownloader(Download)
logger = logging.getLogger(__name__)
 
from core import cons
from core import utils
from core import events

src/o/c/ochDownloader-HEAD/qt/downloads.py   ochDownloader(Download)
logger = logging.getLogger(__name__)
 
from core import cons
from core import events
from core import utils

src/o/c/ochDownloader-HEAD/plugins/sendspace_com/link_checker.py   ochDownloader(Download)
#from core.misc import html_entities_parser #(html entities and numerics parser)
 
from core import cons
from core import utils
 

src/o/c/ochDownloader-HEAD/core/download_managment/manager.py   ochDownloader(Download)
from collections import OrderedDict
 
from core import cons
from core import events
from thread_manager import ThreadManager

src/o/c/ochDownloader-HEAD/core/download_checker/checker.py   ochDownloader(Download)
logger = logging.getLogger(__name__)
 
from core import cons
from core import utils
 

src/o/c/ochDownloader-HEAD/core/download/downloader.py   ochDownloader(Download)
 
#Local Libs
from core import cons
from core import utils
from core.config import conf

src/o/c/ochDownloader-HEAD/addons/tesseract/tesseract.py   ochDownloader(Download)
import JpegImagePlugin
 
from core import cons
from core import utils
from core.network.connection import URLClose, request

src/o/c/ochDownloader-HEAD/addons/swfdump/dump.py   ochDownloader(Download)
logger = logging.getLogger(__name__)
 
from core import cons
from core import utils
 

src/o/c/ochDownloader-HEAD/addons/shutdown/shutdown_gui.py   ochDownloader(Download)
 
from shutdown import Shutdown
import core.cons as cons
from core import events
 

  1 | 2 | 3 | 4 | 5 | 6 | 7  Next