Lines Matching defs:mode
33 "_WindowsConsoleIO(file, mode=\'r\', closefd=True, opener=None)\n"
38 "The mode can be \'rb\' (default), or \'wb\' for reading or writing bytes. All\n"
39 "other mode characters will be ignored. Mode \'b\' will be assumed if it is\n"
44 const char *mode, int closefd,
51 static const char * const _keywords[] = {"file", "mode", "closefd", "opener", NULL};
58 const char *mode = "r";
72 _PyArg_BadArgument("_WindowsConsoleIO", "argument 'mode'", "str", fastargs[1]);
76 mode = PyUnicode_AsUTF8AndSize(fastargs[1], &mode_length);
77 if (mode == NULL) {
80 if (strlen(mode) != (size_t)mode_length) {
99 return_value = _io__WindowsConsoleIO___init___impl((winconsoleio *)self, nameobj, mode, closefd, opener);