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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/n/i/nimbstor-1.0.1/nimbstor/stor.py   nimbstor(Download)
except: import pickle
from itertools import ifilter
from nimbstor.optimized import rolling_search, stor_buffer
 
compress_function_bz2_method = lambda b: bz2.compress(b, 9)
    while len(self._buffer) >= tosize:
      buffer = self._buffer.value()
      pos, cks = rolling_search(self._known_blocks, self._block_already_exists, buffer, BLOCK_SIZE)
      if pos != None:
        if pos > 0: self.commit_buffer(buffer[:pos], 0)