Home
last modified time | relevance | path

Searched refs:modeobj (Results 1 - 2 of 2) sorted by relevance

/third_party/python/Modules/_io/
H A D_iomodule.c211 PyObject *raw, *modeobj = NULL, *buffer, *wrapper, *result = NULL, *path_or_fd = NULL; in _io_open_impl()
342 modeobj = PyUnicode_FromString(mode); in _io_open_impl()
343 if (modeobj == NULL) in _io_open_impl()
388 Py_DECREF(modeobj); in _io_open_impl()
418 Py_DECREF(modeobj); in _io_open_impl()
433 if (PyObject_SetAttr(wrapper, &_Py_ID(mode), modeobj) < 0) in _io_open_impl()
435 Py_DECREF(modeobj); in _io_open_impl()
448 Py_XDECREF(modeobj); in _io_open_impl()
210 PyObject *raw, *modeobj = NULL, *buffer, *wrapper, *result = NULL, *path_or_fd = NULL; _io_open_impl() local
H A Dtextio.c2870 PyObject *nameobj, *modeobj, *res, *s; in textiowrapper_repr() local
2904 if (_PyObject_LookupAttr((PyObject *) self, &_Py_ID(mode), &modeobj) < 0) { in textiowrapper_repr()
2907 if (modeobj != NULL) { in textiowrapper_repr()
2908 s = PyUnicode_FromFormat(" mode=%R", modeobj); in textiowrapper_repr()
2909 Py_DECREF(modeobj); in textiowrapper_repr()

Completed in 5 milliseconds