Lines Matching defs:mode
27 "FileIO(file, mode=\'r\', closefd=True, opener=None)\n"
32 "The mode can be \'r\' (default), \'w\', \'x\' or \'a\' for reading,\n"
37 "writing so this mode behaves in a similar way to \'w\'.Add a \'+\' to the mode\n"
45 _io_FileIO___init___impl(fileio *self, PyObject *nameobj, const char *mode,
52 static const char * const _keywords[] = {"file", "mode", "closefd", "opener", NULL};
59 const char *mode = "r";
73 _PyArg_BadArgument("FileIO", "argument 'mode'", "str", fastargs[1]);
77 mode = PyUnicode_AsUTF8AndSize(fastargs[1], &mode_length);
78 if (mode == NULL) {
81 if (strlen(mode) != (size_t)mode_length) {
100 return_value = _io_FileIO___init___impl((fileio *)self, nameobj, mode, closefd, opener);
128 "True if file was opened in a read mode.");
146 "True if file was opened in a write mode.");
222 "In non-blocking mode, returns as much as is immediately available,\n"
244 "In non-blocking mode, returns None if no data is available.\n"
282 "The number of bytes actually written is returned. In non-blocking mode,\n"