diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-19 20:59:13 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-19 21:56:07 +0300 |
commit | 9e29666bf99c5e5f1cb0246d420b207aacfdf408 (patch) | |
tree | 9d18b149aa3efe878f5b833fd66beade944e6dc7 /py/qstrdefs.h | |
parent | 52386cafa0b3d6715f208a1dc36f149e615363d4 (diff) | |
download | micropython-9e29666bf99c5e5f1cb0246d420b207aacfdf408.tar.gz micropython-9e29666bf99c5e5f1cb0246d420b207aacfdf408.zip |
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/qstrdefs.h')
-rw-r--r-- | py/qstrdefs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h index e33d9967db..cffb64d5ef 100644 --- a/py/qstrdefs.h +++ b/py/qstrdefs.h @@ -354,6 +354,8 @@ Q(io) Q(readall) Q(readline) Q(readlines) +Q(FileIO) +Q(TextIOWrapper) Q(StringIO) Q(BytesIO) Q(getvalue) |