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

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

src/b/l/blaze-0.1/blaze/datashape/coretypes.py   blaze(Download)
import datetime
import numpy as np
from ..py3help import _inttypes, _strtypes, unicode
 
instanceof = lambda T: lambda X: isinstance(X, T)
                self.encoding = fixlen.val
            else:
                self.encoding = unicode(fixlen)
        elif isinstance(fixlen, _inttypes + (IntegerConstant,)) and \
                        isinstance(encoding, _strtypes + (StringConstant,)):
                self.encoding = encoding.val
            else:
                self.encoding = unicode(encoding)
        else:
            raise ValueError(('Unexpected types to String constructor '