Searched refs:modeobj (Results 1 – 2 of 2) sorted by relevance
/third_party/python/Modules/_io/ |
D | _iomodule.c | 247 PyObject *raw, *modeobj = NULL, *buffer, *wrapper, *result = NULL, *path_or_fd = NULL; in _io_open_impl() local 399 modeobj = PyUnicode_FromString(mode); in _io_open_impl() 400 if (modeobj == NULL) in _io_open_impl() 445 Py_DECREF(modeobj); in _io_open_impl() 475 Py_DECREF(modeobj); in _io_open_impl() 490 if (_PyObject_SetAttrId(wrapper, &PyId_mode, modeobj) < 0) in _io_open_impl() 492 Py_DECREF(modeobj); in _io_open_impl() 505 Py_XDECREF(modeobj); in _io_open_impl()
|
D | textio.c | 2898 PyObject *nameobj, *modeobj, *res, *s; in textiowrapper_repr() local 2932 if (_PyObject_LookupAttrId((PyObject *) self, &PyId_mode, &modeobj) < 0) { in textiowrapper_repr() 2935 if (modeobj != NULL) { in textiowrapper_repr() 2936 s = PyUnicode_FromFormat(" mode=%R", modeobj); in textiowrapper_repr() 2937 Py_DECREF(modeobj); in textiowrapper_repr()
|