summaryrefslogtreecommitdiffstatshomepage
path: root/py
Commit message (Collapse)AuthorAge
* objint_longlong: Don't assert on invalid syntax, raise SyntaxError instead.Paul Sokolovsky2014-02-18
|
* stm: Initialize sys.path with ["0:/", "0:/src", "0:/lib"].Paul Sokolovsky2014-02-18
| | | | | This is compatible with what search path was before sys.path refactor, with addition of module library path ("0:/lib").
* Support passing positional args as keywords to bytecode functions.Paul Sokolovsky2014-02-16
| | | | | For this, record argument names along with each bytecode function. The code still includes extensive debug logging support so far.
* Make DEBUG_printf() a proper function, implementation is port-dependent.Paul Sokolovsky2014-02-16
| | | | | In particular, unix outputs to stderr, to allow to run testsuite against micropython built with debug output (by redirecting stderr to /dev/null).
* Propagate scope flags refactor to emitcpy.c.Paul Sokolovsky2014-02-16
|
* builtinimport: Get the basic (and only basic) package imports work.Paul Sokolovsky2014-02-16
|
* builtinimport.c: Recognize "namespace package" and error out as unsupported.Paul Sokolovsky2014-02-16
| | | | | | 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.
* py: Pass keyword arguments to byte code.Damien George2014-02-16
|
* py: Implement *vargs support.Damien George2014-02-16
| | | | Addresses issue #295.
* py: Revent some long int configuration.Damien George2014-02-15
|
* py: VM never throws an exception, instead returns a status and value.Damien George2014-02-15
| | | | | Addresses issue #290, and hopefully sets up things to allow generators throwing exceptions, etc.
* Small change to configuration of long int.Damien George2014-02-15
|
* py: Improve exception bases, reduces ROM usage.Damien George2014-02-15
| | | | Thanks to @pfalcon for the tip!
* py: Pass all scope flags through to runtime.Damien George2014-02-15
|
* Implement proper exception type hierarchy.Damien George2014-02-15
| | | | | | | | | | | | | | 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.
* Change mp_obj_type_t.name from const char * to qstr.Damien George2014-02-15
| | | | | | 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.
* py: Fix IMPORT_STAR, needs to pop the stack.Damien George2014-02-14
|
* Merge pull request #288 from pfalcon/port-builtinsDamien George2014-02-14
|\ | | | | Allow ports to define statically builtin functions.
| * Allow ports to define statically builtin functions.Paul Sokolovsky2014-02-14
| | | | | | | | Convert unix open() to such.
* | Merge pull request #282 from pfalcon/from-starDamien George2014-02-14
|\ \ | | | | | | Implement "from mod import *"
| * | Implement "from module import *" construct.Paul Sokolovsky2014-02-14
| |/
* | mp_binary_get_val(): Fix value type.Paul Sokolovsky2014-02-15
| |
* | objexcept: Fix a case of initialized object field.Paul Sokolovsky2014-02-15
| |
* | objarray: Refactor to use array accessors from binary.c .Paul Sokolovsky2014-02-14
| |
* | ffi: Implement ffivar.get()/set() methods.Paul Sokolovsky2014-02-14
|/ | | | | Done by introducing another factored out helper API in binary.c. This API can be reused also by array and struct modules.
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-02-12
|\
| * Implement full arg handling for exec().Paul Sokolovsky2014-02-13
| |
* | Remove mp_obj_new_exception_msg_1_arg and _2_arg.Damien George2014-02-12
|/
* Replace global "static" -> "STATIC", to allow "analysis builds". Part 2.Paul Sokolovsky2014-02-12
|
* Replace global "static" -> "STATIC", to allow "analysis builds". Part 1.Paul Sokolovsky2014-02-12
| | | | | | | | 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().
* Add prototype for gc_dump_info().Paul Sokolovsky2014-02-11
|
* More GC debugging improvements.Paul Sokolovsky2014-02-11
|
* Generalize malloc-via-gc-heap support, make it available to unix port.Paul Sokolovsky2014-02-11
|
* objstr: Mark few local symbols as static, cleanup codestyle.Paul Sokolovsky2014-02-11
| | | | Please don't submit patches with tab indentation!
* gc: Don't segfault if gc_realloc() fails.Paul Sokolovsky2014-02-11
|
* gc: Make debug output configurable, revamp test function.Paul Sokolovsky2014-02-11
| | | | | Test function needs to be called by something else. Test heap size reduced so its dump fits on a screenful of a typical terminal.
* mp_obj_equal(): Instead of assert(), throw NotImplementedError.Paul Sokolovsky2014-02-11
| | | | With a nice traceback, helps debugging much better.
* Typo fix in comment.Paul Sokolovsky2014-02-11
|
* Merge pull request #270 from pfalcon/down-with-callocDamien George2014-02-10
|\ | | | | Get rid of calloc().
| * Get rid of calloc().Paul Sokolovsky2014-02-10
| | | | | | | | | | If there's malloc and memset, then there's no need for calloc, especially if we need to implement it ourselves.
* | Merge pull request #267 from pfalcon/func-ret-annDamien George2014-02-10
|\ \ | | | | | | Clean up handling of function return type annotation.
| * | Clean up handling of function return type annotation.Paul Sokolovsky2014-02-10
| | |
* | | Fix some int casting that failed on 64 bit architecture.Damien George2014-02-10
| | |
* | | Merge branch 'master' of github.com:micropython/micropythonDamien George2014-02-10
|\ \ \ | | |/ | |/|
| * | Factor out mp_seq_count_obj() and implement tuple.count().Paul Sokolovsky2014-02-10
| | |
| * | Implement tuple.index().Paul Sokolovsky2014-02-10
| | |
| * | Factor out mp_seq_index_obj() function to implement .index() on sequences.Paul Sokolovsky2014-02-10
| |/
| * Add NotImplementedError.Paul Sokolovsky2014-02-09
| |
| * Implement tuple multiplication.Paul Sokolovsky2014-02-08
| |
| * Implement tuple addition.Paul Sokolovsky2014-02-08
| |