Lines Matching defs:mode
200 mode: str = "r"
206 The mode can be 'r' (default), 'w', 'x' or 'a' for reading,
211 writing so this mode behaves in a similar way to 'w'.Add a '+' to the mode
220 _io_FileIO___init___impl(fileio *self, PyObject *nameobj, const char *mode,
289 s = mode;
297 "mode and at most one plus");
336 "invalid mode: %.200s", mode);
361 if (PySys_Audit("open", "Osi", nameobj, mode, flags) < 0) {
574 True if file was opened in a read mode.
589 True if file was opened in a write mode.
686 In non-blocking mode, returns as much as is immediately available,
788 In non-blocking mode, returns None if no data is available.
847 The number of bytes actually written is returned. In non-blocking mode,
1094 "<_io.FileIO fd=%d mode='%s' closefd=%s>",
1102 "<_io.FileIO name=%R mode='%s' closefd=%s>",
1158 /* 'closed' and 'mode' are attributes for backwards compatibility reasons. */
1182 {"mode", (getter)get_mode, NULL, "String giving the file mode"},