aboutsummaryrefslogtreecommitdiff
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorPaul Sokolovsky2014-05-19 20:59:13 +0300
committerPaul Sokolovsky2014-05-19 21:56:07 +0300
commit9e29666bf99c5e5f1cb0246d420b207aacfdf408 (patch)
tree9d18b149aa3efe878f5b833fd66beade944e6dc7 /py/mpconfig.h
parent52386cafa0b3d6715f208a1dc36f149e615363d4 (diff)
py: Implement proper separation between io.FileIO and io.TextIOWrapper.
io.FileIO is binary I/O, ans actually optional. Default file type is io.TextIOWrapper, which provides str results. CPython3 explicitly describes io.TextIOWrapper as buffered I/O, but we don't have buffering support yet anyway.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 53429f1c1..445fc78b0 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -225,6 +225,10 @@ typedef double mp_float_t;
#define MICROPY_ENABLE_MOD_IO (1)
#endif
+#ifndef MICROPY_MOD_IO_FILEIO
+#define MICROPY_MOD_IO_FILEIO (0)
+#endif
+
#ifndef MICROPY_IO_BYTESIO
#define MICROPY_IO_BYTESIO (1)
#endif