mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
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:
@@ -446,6 +446,9 @@ Q(StringIO)
|
||||
Q(BytesIO)
|
||||
Q(getvalue)
|
||||
Q(file)
|
||||
Q(mode)
|
||||
Q(r)
|
||||
Q(encoding)
|
||||
#endif
|
||||
|
||||
#if MICROPY_PY_GC
|
||||
|
||||
Reference in New Issue
Block a user