/* May be called with any object */ PyObject * _PyIOBase_check_writable(PyObject *self, PyObject *args) { PyObject *res = PyObject_CallMethodObjArgs(self, _PyIO_str_writable, NULL); if (res == NULL) return NULL; if (res != Py_True) { Py_CLEAR(res); iobase_unsupported("File or stream is not writable."); return NULL; } if (args == Py_True) { Py_DECREF(res); } return res; }
static PyObject * iobase_seek(PyObject *self, PyObject *args) { return iobase_unsupported("seek"); }
static PyObject * iobase_fileno(PyObject *self, PyObject *args) { return iobase_unsupported("fileno"); }
static PyObject * iobase_truncate(PyObject *self, PyObject *args) { return iobase_unsupported("truncate"); }
static PyObject * _io__IOBase_fileno_impl(PyObject *self) /*[clinic end generated code: output=7cc0973f0f5f3b73 input=4e37028947dc1cc8]*/ { return iobase_unsupported("fileno"); }
static PyObject * _io__IOBase_fileno_impl(PyObject *self) /*[clinic end generated code: output=7cc0973f0f5f3b73 input=32773c5df4b7eede]*/ { return iobase_unsupported("fileno"); }