Lines Matching defs:binary
97 (For reading and writing raw bytes use binary mode and leave encoding
107 'b' binary mode
112 The default mode is 'rt' (open for reading text). For binary random
117 Python distinguishes between files opened in binary and text modes,
119 binary mode (appending 'b' to the mode argument) return contents as
126 Pass 0 to switch buffering off (only allowed in binary mode), 1 to select
138 for binary files.
146 be handled---this argument should not be used in binary mode. Pass
185 a file in a binary mode, the returned class varies: in read binary
186 mode, it returns a BufferedReader; in write binary and append binary
193 opened in a binary mode.
205 int text = 0, binary = 0;
256 binary = 1;
280 if (text && binary) {
282 "can't have text and binary mode at once");
292 if (binary && encoding != NULL) {
294 "binary mode doesn't take an encoding argument");
298 if (binary && errors != NULL) {
300 "binary mode doesn't take an errors argument");
304 if (binary && newline != NULL) {
306 "binary mode doesn't take a newline argument");
310 if (binary && buffering == 1) {
313 "binary mode, the default buffer size will be used",
382 if (!binary) {
416 /* if binary, returns the buffered file */
417 if (binary) {