micropython/micropython — pull request #890 by stinos (2014-10-04 07:10:47+00:00)
Title: kwargs for open() and _io.FileIO()

This provides more CPython compatibility but is mainly done in work towards a fix for #874: the mode kwarg is fully implemented, and the encoding arg is allowed so now the tests can specify `encoding='utf-8'` which makes sure CPython uses the correct encoding for opening the files instead of the encoding derived from some environment variable.