Implement kwargs for builtin open() and _io.FileIO

This makes open() and _io.FileIO() more CPython compliant.
The mode kwarg is fully iplemented.
The encoding kwarg is allowed but not implemented; mainly to allow
the tests to specify encoding for CPython, see #874
This commit is contained in:
stijn
2014-10-04 08:51:33 +02:00
committed by Paul Sokolovsky
parent 072bd07f17
commit 2fe4cf7761
8 changed files with 90 additions and 63 deletions

View File

@@ -446,6 +446,9 @@ Q(StringIO)
Q(BytesIO)
Q(getvalue)
Q(file)
Q(mode)
Q(r)
Q(encoding)
#endif
#if MICROPY_PY_GC