summaryrefslogtreecommitdiff
path: root/unix/file.c
AgeCommit message (Collapse)Author
2014-01-22Second stage of qstr revamp: uPy str object can be qstr or not.Damien George
2014-01-21Merge branch 'master' of github.com:micropython/micropythonDamien George
Conflicts: py/objstr.c py/py.mk py/stream.c unix/main.c unix/socket.c
2014-01-21Revamp qstrs: they now include length and hash.Damien George
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
2014-01-20unix file: Refactor and add sys.stdout/stdin/stderr.Paul Sokolovsky
2014-01-20unix io.FileIO: Add iteration support.Paul Sokolovsky
A file cannot be iterated concurrently, so we make io.FileIO its own iterator.
2014-01-19Fix incorrect prototype of mp_builtin_open() after args refactor.Paul Sokolovsky
2014-01-18Make VM stack grow upwards, and so no reversed args arrays.Damien George
Change state layout in VM so the stack starts at state[0] and grows upwards. Locals are at the top end of the state and number downwards. This cleans up a lot of the interface connecting the VM to C: now all functions that take an array of Micro Python objects are in order (ie no longer in reverse). Also clean up C API with keyword arguments (call_n and call_n_kw replaced with single call method that takes keyword arguments). And now make_new takes keyword arguments. emitnative.c has not yet been changed to comply with the new order of stack layout.
2014-01-15Merge branch 'str-repr' of github.com:pfalcon/micropython into pfalcon-str-reprDamien George
Conflicts: tests/basics/tests/exception1.py
2014-01-15Add unbuffered readline() implementation for Raw I/O files.Paul Sokolovsky
2014-01-15type->print(): Distinguish str() and repr() variety by passing extra param.Paul Sokolovsky
2014-01-13Add generic impl of stream .readall() method. Use one for unix io.FileIO.Paul Sokolovsky
2014-01-08py: add variable argument exception constructor function.Damien George
Addresses issue #104.
2014-01-08unix: Add basic implementation of io.FileIO object.Paul Sokolovsky
Note: only read/write/close methods are defined so far, and class is not exposed (use open() factory function, as usual).