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

All Samples(11)  |  Call(7)  |  Derive(0)  |  Import(4)

src/b/l/blaze-0.1/blaze/blz/btable.py   blaze(Download)
from .bparams import bparams
from .chunked_eval import evaluate
from ..py3help import _inttypes, imap, xrange
 
# BLZ utilities
                if limit is not None:
                    istop = limit + skip
                icols.append(islice(xrange(start, stop, step), skip, istop))
                dtypes.append((name, np.int_))
            else:

src/b/l/blaze-0.1/blaze/_printing/_arrayprint.py   blaze(Download)
__docformat__ = 'restructuredtext'
 
from ..py3help import xrange
 
#
        s = ""
        line = next_line_prefix
        for i in xrange(leading_items):
            word = format_function(dd_as_py(a[i])) + separator
            s, line = _extendLine(s, line, word, max_line_len, next_line_prefix)
 
        if summary_insert1:
            s, line = _extendLine(s, line, summary_insert1, max_line_len, next_line_prefix)
 
        for i in xrange(trailing_items, 1, -1):
        s = '['
        sep = separator.rstrip()
        for i in xrange(leading_items):
            if i > 0:
                s += next_line_prefix
            s += next_line_prefix + summary_insert1 + "\n"
 
        for i in xrange(trailing_items, 1, -1):
            if leading_items or i != trailing_items:
                s += next_line_prefix

src/b/l/blaze-0.1/blaze/blz/bfuncs.py   blaze(Download)
from .btable import btable
from .bparams import bparams
from ..py3help import xrange, _inttypes
 
_inttypes += (np.integer,)
        for name in bobj.names:
            cbufs[name] = np.empty(blen, dtype=bobj[name].dtype)
        for i in xrange(start, stop, blen):
            buf = np.empty(blen, dtype=bobj.dtype)
            # Populate the column buffers and assign to the final buffer
        if blen is None:
            blen = bobj.chunklen
        for i in xrange(start, stop, blen):
            buf = np.empty(blen, dtype=bobj.dtype)
            bobj._getrange(i, blen, buf)

src/b/l/blaze-0.1/blaze/blz/attrs.py   blaze(Download)
import os, os.path
import json
from ..py3help import xrange, dict_iteritems
 
ATTRSDIR = "__attrs__"