- 30 Mar, 2014 2 commits
-
-
Damien George authored
Mostly just a global search and replace. Except rt_is_true which becomes mp_obj_is_true. Still would like to tidy up some of the names, but this will do for now.
-
Paul Sokolovsky authored
-
- 29 Mar, 2014 1 commit
-
-
Damien George authored
Addresses issue #388.
-
- 28 Mar, 2014 1 commit
-
-
Paul Sokolovsky authored
To comply with Python semantics and allow use of mp_obj_is_subclass_fast() for exception matching.
-
- 27 Mar, 2014 1 commit
-
-
Damien George authored
Only exceptions that are actually used are left prefedined. Hierarchy is still there, and removed exceptions are just commented out.
-
- 26 Mar, 2014 3 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
This gets "value" of exceptions in the sense as it's defined for StopIteration.value (i.e. args[0] or None). TODO: This really should be inline function.
-
Paul Sokolovsky authored
Return with value gets converted to StopIteration(value). Implementation keeps optimizing against creating of possibly unneeded exception objects, so there're considerable refactoring to implement these features.
-
- 25 Mar, 2014 1 commit
-
-
Damien George authored
They still exist in commented-out form in objexcept.c if they are ever needed.
-
- 24 Mar, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 22 Mar, 2014 2 commits
-
-
Damien George authored
-
Rachel Dowdall authored
Added exception hierarchy except for OSError and UnicodeError (requires arguments). Comment out the errors that aren't needed if memory becomes an issue.
-
- 20 Mar, 2014 1 commit
-
-
Rachel Dowdall authored
-
- 17 Mar, 2014 1 commit
-
-
xbe authored
Remove unnecessary includes. Add includes that improve portability.
-
- 09 Mar, 2014 1 commit
-
-
Damien George authored
-
- 15 Feb, 2014 5 commits
-
-
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
Thanks to @pfalcon for the tip!
-
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 1 commit
-
-
Paul Sokolovsky authored
-
- 12 Feb, 2014 2 commits
-
-
Damien George 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().
-
- 31 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 29 Jan, 2014 1 commit
-
-
Damien George authored
-
- 21 Jan, 2014 1 commit
-
-
Damien George authored
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
-
- 19 Jan, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
Exceptions know source file, line and block name. Also tidy up some debug printing functions and provide a global flag to enable/disable them.
-
- 18 Jan, 2014 2 commits
-
-
Damien George authored
Byte code has a map from byte-code offset to source-code line number, used to give better error messages.
-
Damien George authored
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.
-
- 15 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 14 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
This implements internal args tuple of arguments, while still keeping object useful for reporting C-side errors. Further elaboration is needed.
-
- 08 Jan, 2014 1 commit
-
-
Damien George authored
Addresses issue #104.
-
- 07 Jan, 2014 2 commits
-
-
John R. Lenton authored
-
John R. Lenton authored
It's not really about that, though; it's about me figuring out a sane way forward for keyword-argument functions (and function metadata). But it's useful as is, and shouldn't break any existing code, so here you have it; I'm going to park it in my mind for a bit while sorting out the rest of the dict branch.
-
- 06 Jan, 2014 1 commit
-
-
ian-v authored
-
- 05 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 04 Jan, 2014 1 commit
-
-
Damien George authored
Now much more inline with how CPython does types.
-
- 29 Dec, 2013 1 commit
-
-
Damien authored
-
- 21 Dec, 2013 1 commit
-
-
Damien authored
A big change. Micro Python objects are allocated as individual structs with the first element being a pointer to the type information (which is itself an object). This scheme follows CPython. Much more flexible, not necessarily slower, uses same heap memory, and can allocate objects statically. Also change name prefix, from py_ to mp_ (mp for Micro Python).
-