PyFileObject.f_binary

Flag which indicates whether the file is open in binary (1) or text (0) mode

struct PyFileObject
int f_binary;

Meta