All Samples(313) | Call(3) | Derive(1) | Import(309)
unicode(string [, encoding[, errors]]) -> 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/a/l/alexandria-HEAD/src/alexandria/sessions/db/models.py alexandria(Download)
('None', lambda v: None),
('String', lambda v: types.StringType(v)),
('Tuple', lambda v: tuple(simplejson.loads(v))),
('Unicode', lambda v: types.UnicodeType(v)),
]
# the order is importance since python things True == 1 causing
src/s/p/springnote.py-with-oauth-HEAD/springnote.py springnote.py-with-oauth(Download)
'offset' : lambda x: types.IntType(x),
'count' : lambda x: types.IntType(x),
'parent_id': lambda x: types.IntType(x),
'q' : lambda x: types.UnicodeType(x),
'tags' : lambda x: types.UnicodeType(x),
'identifiers': lambda x: re.match("([0-9]+,)*[0-9]+", str(x)).group(0),
}