summaryrefslogtreecommitdiffstatshomepage
path: root/unix/file.c
Commit message (Collapse)AuthorAge
* io.File, socket types: Add fileno() method.Paul Sokolovsky2014-02-08
| | | | | Implementation is duplicated, but tolerate this for now, because there's no clear idea how to de-dup it.
* Second stage of qstr revamp: uPy str object can be qstr or not.Damien George2014-01-22
|
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-01-21
|\ | | | | | | | | | | | | | | | | Conflicts: py/objstr.c py/py.mk py/stream.c unix/main.c unix/socket.c
| * unix file: Refactor and add sys.stdout/stdin/stderr.Paul Sokolovsky2014-01-20
| |
| * unix io.FileIO: Add iteration support.Paul Sokolovsky2014-01-20
| | | | | | | | | | A file cannot be iterated concurrently, so we make io.FileIO its own iterator.
* | Revamp qstrs: they now include length and hash.Damien George2014-01-21
|/ | | | | Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
* Fix incorrect prototype of mp_builtin_open() after args refactor.Paul Sokolovsky2014-01-19
|
* Make VM stack grow upwards, and so no reversed args arrays.Damien George2014-01-18
| | | | | | | | | | | | | | | 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.
* Merge branch 'str-repr' of github.com:pfalcon/micropython into pfalcon-str-reprDamien George2014-01-15
|\ | | | | | | | | Conflicts: tests/basics/tests/exception1.py
| * type->print(): Distinguish str() and repr() variety by passing extra param.Paul Sokolovsky2014-01-15
| |
* | Add unbuffered readline() implementation for Raw I/O files.Paul Sokolovsky2014-01-15
|/
* Add generic impl of stream .readall() method. Use one for unix io.FileIO.Paul Sokolovsky2014-01-13
|
* py: add variable argument exception constructor function.Damien George2014-01-08
| | | | Addresses issue #104.
* unix: Add basic implementation of io.FileIO object.Paul Sokolovsky2014-01-08
Note: only read/write/close methods are defined so far, and class is not exposed (use open() factory function, as usual).