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

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)
unicode(object='') -> unicode object
unicode(string[, encoding[, errors]]) -> unicode object

Create a new Unicode object from the given encoded string.
encoding defaults to the current default string encoding.
errors can be 'strict', 'replace' or 'ignore' and defaults to 'strict'.

src/d/a/datashape-HEAD/datashape/coretypes.py   datashape(Download)
import numpy as np
from .py2help import _inttypes, _strtypes, unicode
from .internal_utils import IndexCallable
                self.encoding = fixlen.val
                self.encoding = unicode(fixlen)
            self.parameters = (self.encoding,)
        elif isinstance(fixlen, _inttypes + (IntegerConstant,)) and \
                self.encoding = encoding.val
                self.encoding = unicode(encoding)
            self.parameters = (self.fixlen, self.encoding,)