summaryrefslogtreecommitdiff
path: root/py
AgeCommit message (Collapse)Author
2014-01-19Change int to uint for n_args in function with variable arguments.Damien George
2014-01-19py: Add full traceback to exception printing.Damien George
2014-01-19py: Add module/function/class name to exceptions.Damien George
Exceptions know source file, line and block name. Also tidy up some debug printing functions and provide a global flag to enable/disable them.
2014-01-19py: Temporary fix for bug where not enough VM state is allocated.Damien George
2014-01-19Tiny optimisation in objlist.c; a new test for inheritance.Damien George
2014-01-18Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-01-18py: Fix VM/runtime unpack sequence bug, Issue #193.Damien George
2014-01-19Add objarray.h .Paul Sokolovsky
2014-01-18Merge pull request #192 from pfalcon/arraysDamien George
Add skeleton implementation of array.array and bytearray.
2014-01-18Add source file name and line number to error messages.Damien George
Byte code has a map from byte-code offset to source-code line number, used to give better error messages.
2014-01-18Improve method lookup in mp_obj_class_lookup.Damien George
Now searches both locals_dict and methods. Partly addresses Issue #145.
2014-01-18Add skeleton implementation of array.array and bytearray.Paul Sokolovsky
So far, only storage, initialization, repr() and buffer protocol is implemented - alredy suitable for passing binary data around.
2014-01-18Implement framework for class-defined built-in operators.Damien George
Now working for class-defined methods: __getitem__, __setitem__, __add__, __sub__. Easy to add others.
2014-01-18Merge pull request #191 from pfalcon/store-itemDamien George
Add store_item() virtual method to type to implement container[index] = val
2014-01-18Merge branch 'master' of github.com:dpgeorge/micropythonDamien George
2014-01-18int: Add value accessors: mp_obj_int_get() & mp_obj_int_get_checked().Paul Sokolovsky
mp_obj_int_get() can be used when just full resolution of C machine_int_t is required (returns truncated value of long int). mp_obj_int_get_checked() will throw exception if Python int value not representable in machine_int_t.
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-18Add store_item() virtual method to type to implement container[index] = val.Paul Sokolovsky
2014-01-18Add OverflowError and use it for small int overflow instead of assert.Paul Sokolovsky
2014-01-17Implement LOAD_CONST_INT (by dispatching to int object implementation).Paul Sokolovsky
2014-01-17Add long int implementation using C long long type, enable for unix port.Paul Sokolovsky
2014-01-16Add empty (false) value testing for strings, tuples, lists, dicts.Paul Sokolovsky
2014-01-16Add empty "micropython" module to allow more seamless CPython portability.Paul Sokolovsky
Implicit "micropython" module contains (at least) codegeneration decorators. Make it explicit, so an app could have "import micropython". On MicroPython, that will be no-op. On CPython, that will give a chance to have a module with placeholder decorators.
2014-01-16Make file.read() and file.read(-1) call out to file.readall().Paul Sokolovsky
Per Python3 io module semantics.
2014-01-16Do not assume that vstr buf is the same after it was extended.Paul Sokolovsky
2014-01-16str.format: Don't assume that '}' immediately follows '{', skip insides.Paul Sokolovsky
That at least makes stuff like "{:x}".format(1) to produce not completely broken output.
2014-01-15Add errno=0 before call.Damien George
2014-01-15stm: Fix print methods with new kind argument.Damien George
2014-01-15Merge branch 'str2int' of github.com:xyb/micropython into xyb-str2intDamien George
Conflicts: py/objint.c unix-cpy/Makefile unix/Makefile
2014-01-15Merge branch 'str-repr' of github.com:pfalcon/micropython into pfalcon-str-reprDamien George
Conflicts: tests/basics/tests/exception1.py
2014-01-15Merge branch 'builtins' of github.com:chipaca/micropython into chipaca-builtinsDamien George
Added some checks for number of arguments. Conflicts: py/mpqstrraw.h
2014-01-15Merge branch 'master' of github.com:dpgeorge/micropythonDamien George
2014-01-15Implement eval.Damien George
2014-01-15Add unbuffered readline() implementation for Raw I/O files.Paul Sokolovsky
2014-01-15Implement repr.Damien George
2014-01-15Convert parse errors to exceptions.Damien George
Parser no longer prints an error, but instead returns an exception ID and message.
2014-01-15add more tests and remove debug codexyb
2014-01-15int() test passedxyb
2014-01-15added filter()John R. Lenton
2014-01-15Added mapJohn R. Lenton
2014-01-15Implement str() and repr() builtin functions.Paul Sokolovsky
2014-01-15type->print(): Distinguish str() and repr() variety by passing extra param.Paul Sokolovsky
2014-01-14Merge remote-tracking branch 'upstream/master' into builtinsJohn R. Lenton
2014-01-14added enumerate()John R. Lenton
2014-01-14Merge pull request #173 from pfalcon/file-readallDamien George
Generic implementation if stream readall() method, immediately reused in unix io.FileIO implementation
2014-01-14Merge pull request #161 from pfalcon/exc-more-pythonicDamien George
Move towards Python-compliant interface of exceptions
2014-01-14Merge pull request #142 from chipaca/containmentDamien George
Implemented support for `in` and `not in` operators.
2014-01-14Tidy up.Damien George
2014-01-14Merge pull request #165 from chipaca/builtinsDamien George
added zip()
2014-01-15Implement "is" and "is not" operators.Paul Sokolovsky
So far, don't work for strings as expected.