summaryrefslogtreecommitdiffstatshomepage
path: root/unix
Commit message (Collapse)AuthorAge
* unix file: Refactor and add sys.stdout/stdin/stderr.Paul Sokolovsky2014-01-20
|
* Don't preimport socket module.Paul Sokolovsky2014-01-20
|
* unix socket: Add send() and recv() methods.Paul Sokolovsky2014-01-20
| | | | | | | CPython _socket actually have only those and doesn't provide stream interface (higher-level CPython "socket" what adds this). +516 bytes x86.
* unix io.FileIO: Add iteration support.Paul Sokolovsky2014-01-20
| | | | | A file cannot be iterated concurrently, so we make io.FileIO its own iterator.
* Rename unix binary to 'micropython'.Damien George2014-01-20
|
* unix: Implement sys.argv.Paul Sokolovsky2014-01-20
|
* Change int to uint for n_args in function with variable arguments.Damien George2014-01-19
|
* py: Add full traceback to exception printing.Damien George2014-01-19
|
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-01-19
|\
| * Fix incorrect prototype of mp_builtin_open() after args refactor.Paul Sokolovsky2014-01-19
| |
* | py: Add module/function/class name to exceptions.Damien George2014-01-19
|/ | | | | | | Exceptions know source file, line and block name. Also tidy up some debug printing functions and provide a global flag to enable/disable them.
* Fix warnings about int/pointer casting.Damien George2014-01-18
|
* Merge pull request #194 from pfalcon/socketDamien George2014-01-18
|\ | | | | Add lean ("raw") socket module.
| * Add lean ("raw") socket module.Paul Sokolovsky2014-01-19
| |
* | Add source file name and line number to error messages.Damien George2014-01-18
|/ | | | | Byte code has a map from byte-code offset to source-code line number, used to give better error messages.
* 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.
* Add long int implementation using C long long type, enable for unix port.Paul Sokolovsky2014-01-17
|
* Merge branch 'str2int' of github.com:xyb/micropython into xyb-str2intDamien George2014-01-15
|\ | | | | | | | | | | | | Conflicts: py/objint.c unix-cpy/Makefile unix/Makefile
| * Implemented int(str) in UNIXxyb2014-01-14
| |
* | 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
| | |
* | | Merge branch 'master' of github.com:dpgeorge/micropythonDamien George2014-01-15
|\ \ \
| * | | Add unbuffered readline() implementation for Raw I/O files.Paul Sokolovsky2014-01-15
| |/ /
* / / Convert parse errors to exceptions.Damien George2014-01-15
|/ / | | | | | | | | Parser no longer prints an error, but instead returns an exception ID and message.
* | Merge pull request #170 from chipaca/masterDamien George2014-01-14
|\ \ | | | | | | made DEBUG control CFLAGS in Makefiles other than stm as well.
| * | made DEBUG control CFLAGS in Makefiles oter than stm as well.John R. Lenton2014-01-13
| |/
* / Add generic impl of stream .readall() method. Use one for unix io.FileIO.Paul Sokolovsky2014-01-13
|/
* py: Implement base class lookup, issubclass, isinstance.Damien George2014-01-09
|
* Improved type/class/instance code; mp_obj_type_t now has load_attr, store_attr.Damien George2014-01-09
| | | | | Creating of classes (types) and instances is much more like CPython now. You can use "type('name', (), {...})" to create classes.
* Make build output quieter.Dave Hylands2014-01-08
| | | | | | Use make V=1e make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. This should fix issue #117
* 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).
* Merge branch 'cplusplus' of https://github.com/ian-v/micropython into ↵Damien George2014-01-07
|\ | | | | | | | | | | | | ian-v-cplusplus Conflicts: py/objcomplex.c
| * Revert MP_BOOL, etc. and use <stdbool.h> insteadian-v2014-01-06
| |
| * Co-exist with C++ (issue #85)ian-v2014-01-06
| |
* | Factor and simplify Makefile's and mpconfig, part 2.Damien George2014-01-07
| |
* | Factor and simplify Makefile's and mpconfig.Damien George2014-01-07
|/
* Convert many object types structs to use C99 tagged initializer syntax.Paul Sokolovsky2014-01-05
|
* Convert Python types to proper Python type hierarchy.Damien George2014-01-04
| | | | Now much more inline with how CPython does types.
* Convert USE_READLINE config option to be consistent with others.Paul Sokolovsky2014-01-04
|
* Split qstr into pools, and put initial pool in ROM.Damien George2014-01-04
| | | | | | | | | | | | | | | | Qstr's are now split into a linked-list of qstr pools. This has 2 benefits: the first pool can be in ROM (huge benefit, since we no longer use RAM for the core qstrs), and subsequent pools use m_new for the next pool instead of m_renew (thus avoiding a huge single table for all the qstrs). Still would be better to use a hash table, but this scheme takes us part of the way (eventually convert the pools to hash tables). Also fixed bug with import. Also improved the way the module code is referenced (not magic number 1 anymore).
* Improve configurability for native x64/thumb emitter.Damien George2014-01-04
| | | | | | With MICROPY_EMIT_X64 and MICROPY_EMIT_THUMB disabled, the respective emitters and assemblers will not be included in the code. This can significantly reduce binary size for unix version.
* Add basic implementation of slice object.Paul Sokolovsky2014-01-04
| | | | | So far, only start and stop integer indexes are supported. Step is not supported, as well as objects of arbitrary types.
* Move INT_FMT, etc. declaration into global mpconfig.h .Paul Sokolovsky2014-01-04
| | | | This in particular makes it available for stm port.
* Rename default config file to mpconfig.h, and port's to mpconfigport.h.Paul Sokolovsky2014-01-03
| | | | mpconfig.h will automatically pull mpconfigport.h.
* Change mp_compile so that it returns a function object for the module.Damien George2014-01-03
|
* Basic implementation of import.Damien George2014-01-03
| | | | | | import works for simple cases. Still work to do on finding the right script, and setting globals/locals correctly when running an imported function.
* Add module object, to be used eventually for import.Damien George2014-01-02
|
* unix: revert Makefile to not use -ltermcap.Damien George2014-01-02
| | | | | termcap is not needed on Linux. Need to work out how to automatically configure the Makefile...
* Fix undefined termcap symbols on OpenBSD.Edd Barrett2014-01-01
| | | | | | | | | | | | E.g.: /usr/lib/libreadline.so.4.0: undefined reference to `tgetnum' /usr/lib/libreadline.so.4.0: undefined reference to `tgoto' /usr/lib/libreadline.so.4.0: undefined reference to `tgetflag' /usr/lib/libreadline.so.4.0: undefined reference to `tputs' /usr/lib/libreadline.so.4.0: undefined reference to `tgetent' /usr/lib/libreadline.so.4.0: undefined reference to `tgetstr' Tested on linux too, works.