diff options
author | stijn <stinos@zoho.com> | 2014-10-04 08:51:33 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-10-21 22:10:01 +0300 |
commit | 2fe4cf7761ffc40d81b4780d59c2b6ef0a5c16ff (patch) | |
tree | a959cd20a8f4458861a3589f9d179225609ffc19 /py/qstrdefs.h | |
parent | 072bd07f178998f2c88cd2ceef86dea7902a1764 (diff) |
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
Diffstat (limited to 'py/qstrdefs.h')
-rw-r--r-- | py/qstrdefs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h index 2c2c45b5b..c10b2faba 100644 --- a/py/qstrdefs.h +++ b/py/qstrdefs.h @@ -446,6 +446,9 @@ Q(StringIO) Q(BytesIO) Q(getvalue) Q(file) +Q(mode) +Q(r) +Q(encoding) #endif #if MICROPY_PY_GC |