def impl(a): if len(a) > 1: msg = "gettyperecord takes a single unicode character" raise ValueError(msg) code_point = _get_code_point(a, 0) data = _gettyperecord_impl(_Py_UCS4(code_point)) return data
def unicode_get_code(a, i): """Access i-th item of UnicodeType object. """ return unicode._get_code_point(a, i)