Lines Matching defs:unicode
889 string as s: unicode
2103 * regular CPython list, dict, and unicode APIs.
2301 PyObject *unicode;
2302 unicode = PyUnicode_FromWideChar(s, -1);
2303 if (unicode == NULL)
2307 PySys_AddWarnOptionUnicode(unicode);
2309 Py_DECREF(unicode);
3371 sys_pyfile_write_unicode(PyObject *unicode, PyObject *file)
3375 assert(unicode != NULL);
3376 PyObject *result = _PyObject_CallMethodOneArg(file, &_Py_ID(write), unicode);
3387 PyObject *unicode = NULL;
3393 unicode = PyUnicode_FromString(text);
3394 if (unicode == NULL)
3397 err = sys_pyfile_write_unicode(unicode, file);
3398 Py_DECREF(unicode);