Lines Matching defs:mode
50 DWORD mode, peek_count;
55 if (!GetConsoleMode(handle, &mode))
237 mode: str = "r"
243 The mode can be 'rb' (default), or 'wb' for reading or writing bytes. All
244 other mode characters will be ignored. Mode 'b' will be assumed if it is
250 const char *mode, int closefd,
299 s = mode;
325 "invalid mode: %.200s", mode);
401 "Must have exactly one of read or write mode");
1050 return PyUnicode_FromFormat("<_io._WindowsConsoleIO mode='rb' closefd=%s>",
1053 return PyUnicode_FromFormat("<_io._WindowsConsoleIO mode='wb' closefd=%s>",
1056 PyErr_SetString(PyExc_SystemError, "_WindowsConsoleIO has invalid mode");
1091 /* 'closed' and 'mode' are attributes for compatibility with FileIO. */
1115 {"mode", (getter)get_mode, NULL, "String giving the file mode"},