- 19 Feb, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 17 Feb, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
This is compatible with what search path was before sys.path refactor, with addition of module library path ("0:/lib").
-
- 16 Feb, 2014 7 commits
-
-
Paul Sokolovsky authored
For this, record argument names along with each bytecode function. The code still includes extensive debug logging support so far.
-
Paul Sokolovsky authored
In particular, unix outputs to stderr, to allow to run testsuite against micropython built with debug output (by redirecting stderr to /dev/null).
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
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.
-
Damien George authored
-
Damien George authored
Addresses issue #295.
-
- 15 Feb, 2014 8 commits
-
-
Damien George authored
-
Damien George authored
Addresses issue #290, and hopefully sets up things to allow generators throwing exceptions, etc.
-
Paul Sokolovsky authored
First arg is not alloc size, but real size, so if used as mp_obj_new_list(3, NULL), need to store items, not append.
-
Damien George authored
-
Damien George authored
Thanks to @pfalcon for the tip!
-
Damien George authored
-
Damien George authored
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.
-
Damien George authored
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.
-
- 14 Feb, 2014 6 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Done by introducing another factored out helper API in binary.c. This API can be reused also by array and struct modules.
-
Paul Sokolovsky authored
Convert unix open() to such.
-
- 13 Feb, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 12 Feb, 2014 4 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
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().
-
- 11 Feb, 2014 8 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Please don't submit patches with tab indentation!
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Test function needs to be called by something else. Test heap size reduced so its dump fits on a screenful of a typical terminal.
-
Paul Sokolovsky authored
With a nice traceback, helps debugging much better.
-
Paul Sokolovsky authored
-
- 10 Feb, 2014 2 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
If there's malloc and memset, then there's no need for calloc, especially if we need to implement it ourselves.
-