aboutsummaryrefslogtreecommitdiff
path: root/py
AgeCommit message (Collapse)Author
2014-02-16Support passing positional args as keywords to bytecode functions.Paul Sokolovsky
For this, record argument names along with each bytecode function. The code still includes extensive debug logging support so far.
2014-02-16Make DEBUG_printf() a proper function, implementation is port-dependent.Paul Sokolovsky
In particular, unix outputs to stderr, to allow to run testsuite against micropython built with debug output (by redirecting stderr to /dev/null).
2014-02-16Propagate scope flags refactor to emitcpy.c.Paul Sokolovsky
2014-02-16builtinimport: Get the basic (and only basic) package imports work.Paul Sokolovsky
2014-02-16builtinimport.c: Recognize "namespace package" and error out as unsupported.Paul Sokolovsky
See http://www.python.org/dev/peps/pep-0420/#specification for spec. See https://github.com/micropython/micropython/issues/298 for the discussion of the implemented behavior.
2014-02-16py: Pass keyword arguments to byte code.Damien George
2014-02-16py: Implement *vargs support.Damien George
Addresses issue #295.
2014-02-15py: Revent some long int configuration.Damien George
2014-02-15py: VM never throws an exception, instead returns a status and value.Damien George
Addresses issue #290, and hopefully sets up things to allow generators throwing exceptions, etc.
2014-02-15Small change to configuration of long int.Damien George
2014-02-15py: Improve exception bases, reduces ROM usage.Damien George
Thanks to @pfalcon for the tip!
2014-02-15py: Pass all scope flags through to runtime.Damien George
2014-02-15Implement proper exception type hierarchy.Damien George
Each built-in exception is now a type, with base type BaseException. C exceptions are created by passing a pointer to the exception type to make an instance of. When raising an exception from the VM, an instance is created automatically if an exception type is raised (as opposed to an exception instance). Exception matching (RT_BINARY_OP_EXCEPTION_MATCH) is now proper. Handling of parse error changed to match new exceptions. mp_const_type renamed to mp_type_type for consistency.
2014-02-15Change mp_obj_type_t.name from const char * to qstr.Damien George
Ultimately all static strings should be qstr. This entry in the type structure is only used for printing error messages (to tell the type of the bad argument), and printing objects that don't supply a .print method.
2014-02-14py: Fix IMPORT_STAR, needs to pop the stack.Damien George
2014-02-14Merge pull request #288 from pfalcon/port-builtinsDamien George
Allow ports to define statically builtin functions.
2014-02-14Merge pull request #282 from pfalcon/from-starDamien George
Implement "from mod import *"
2014-02-15mp_binary_get_val(): Fix value type.Paul Sokolovsky
2014-02-15objexcept: Fix a case of initialized object field.Paul Sokolovsky
2014-02-14objarray: Refactor to use array accessors from binary.c .Paul Sokolovsky
2014-02-14ffi: Implement ffivar.get()/set() methods.Paul Sokolovsky
Done by introducing another factored out helper API in binary.c. This API can be reused also by array and struct modules.
2014-02-14Allow ports to define statically builtin functions.Paul Sokolovsky
Convert unix open() to such.
2014-02-14Implement "from module import *" construct.Paul Sokolovsky
2014-02-12Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-02-12Remove mp_obj_new_exception_msg_1_arg and _2_arg.Damien George
2014-02-13Implement full arg handling for exec().Paul Sokolovsky
2014-02-12Replace global "static" -> "STATIC", to allow "analysis builds". Part 2.Paul Sokolovsky
2014-02-12Replace global "static" -> "STATIC", to allow "analysis builds". Part 1.Paul Sokolovsky
Some tools do not support local/static symbols (one example is GNU ld map file). Exposing all functions will allow to do detailed size comparisons, etc. Also, added bunch of statics where they were missing, and replaced few identity functions with global mp_identity().
2014-02-11Add prototype for gc_dump_info().Paul Sokolovsky
2014-02-11More GC debugging improvements.Paul Sokolovsky
2014-02-11Generalize malloc-via-gc-heap support, make it available to unix port.Paul Sokolovsky
2014-02-11objstr: Mark few local symbols as static, cleanup codestyle.Paul Sokolovsky
Please don't submit patches with tab indentation!
2014-02-11gc: Don't segfault if gc_realloc() fails.Paul Sokolovsky
2014-02-11gc: Make debug output configurable, revamp test function.Paul Sokolovsky
Test function needs to be called by something else. Test heap size reduced so its dump fits on a screenful of a typical terminal.
2014-02-11mp_obj_equal(): Instead of assert(), throw NotImplementedError.Paul Sokolovsky
With a nice traceback, helps debugging much better.
2014-02-11Typo fix in comment.Paul Sokolovsky
2014-02-10Merge pull request #270 from pfalcon/down-with-callocDamien George
Get rid of calloc().
2014-02-10Merge pull request #267 from pfalcon/func-ret-annDamien George
Clean up handling of function return type annotation.
2014-02-10Fix some int casting that failed on 64 bit architecture.Damien George
2014-02-10Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-02-10Get rid of calloc().Paul Sokolovsky
If there's malloc and memset, then there's no need for calloc, especially if we need to implement it ourselves.
2014-02-10Factor out mp_seq_count_obj() and implement tuple.count().Paul Sokolovsky
2014-02-10Implement tuple.index().Paul Sokolovsky
2014-02-10Factor out mp_seq_index_obj() function to implement .index() on sequences.Paul Sokolovsky
2014-02-10Clean up handling of function return type annotation.Paul Sokolovsky
2014-02-09Add NotImplementedError.Paul Sokolovsky
2014-02-08Implement tuple multiplication.Paul Sokolovsky
2014-02-08Implement tuple addition.Paul Sokolovsky
2014-02-08Implement tuple comparison.Paul Sokolovsky
2014-02-08Refactor list comparison code to mp_seq_cmp_objs().Paul Sokolovsky