Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Rename machine_(u)int_t to mp_(u)int_t. | Damien George | 2014-07-03 |
| | | | | See discussion in issue #50. | ||
* | py, objexcept: Only check for locked gc if gc is enabled. | Damien George | 2014-07-01 |
| | |||
* | Try not to cause a MemoryError when raising an exception during nterrupt ↵ | Dave Hylands | 2014-06-30 |
| | | | | | | handling. Step 1 fixes #732 | ||
* | Change comments (mainly URLs) to no longer specifically say Python 3.3 | Chris Angelico | 2014-06-06 |
| | |||
* | Change const byte* to const char* where sensible. | Damien George | 2014-05-25 |
| | | | | | This removes need for some casts (at least, more than it adds need for new casts!). | ||
* | Add SystemExit exception and use it in unix/ and stmhal/ ports. | Damien George | 2014-05-24 |
| | | | | Addresses issue #598. | ||
* | Merge pull request #607 from Anton-2/osx-clang | Damien George | 2014-05-21 |
|\ | | | | | Allow compilation of unix port under clang on OS X | ||
| * | Fix some unused variables, and silence a clang warning about initialization ↵ | Antonin ENFRUN | 2014-05-12 |
| | | | | | | | | override in vmentrytable.h | ||
* | | objexcept: Implement explicit __init__ method, useful for subclasses. | Paul Sokolovsky | 2014-05-19 |
|/ | |||
* | py: Rename globally-accessible tuple functions, prefix with mp_obj_. | Damien George | 2014-05-11 |
| | | | | | Likely there are other functions that should be renamed, but this is a start. | ||
* | Add license header to (almost) all files. | Damien George | 2014-05-03 |
| | | | | | | | Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/. | ||
* | py, unix: Make "mpconfig.h" be first included, as other headers depend on it. | Paul Sokolovsky | 2014-05-02 |
| | | | | Specifically, nlr.h does. | ||
* | objexcept: Support tracebacks for user Exception subclasses. | Paul Sokolovsky | 2014-05-02 |
| | |||
* | objtype: .print() Exception instances in adhoc way. | Paul Sokolovsky | 2014-05-02 |
| | | | | This is ugly, just as expected. | ||
* | objexcept: Don't store args tuple within exception object. | Paul Sokolovsky | 2014-04-23 |
| | | | | To avoid pointer-to-field GC problem. | ||
* | objexcept: Add mp_obj_new_exception_arg1() convenience function. | Paul Sokolovsky | 2014-04-22 |
| | |||
* | py: Check explicitly for memory allocation failure in parser. | Damien George | 2014-04-10 |
| | | | | | | Previously, a failed malloc/realloc would throw an exception, which was not caught. I think it's better to keep the parser free from NLR (exception throwing), hence this patch. | ||
* | py: Add emergency exception object for when heap allocation fails. | Damien George | 2014-04-10 |
| | |||
* | py: Change nlr_jump to nlr_raise, to aid in debugging. | Damien George | 2014-04-05 |
| | | | | | | This does not affect code size or performance when debugging turned off. To address issue #420. | ||
* | py: Add m_malloc_fail function to handle memory allocation error. | Damien George | 2014-04-04 |
| | | | | A malloc/realloc fail now throws MemoryError. | ||
* | objexcept: No more magic messages in exceptions, only exception arguments. | Paul Sokolovsky | 2014-03-31 |
| | | | | | | | One of the reason for separate "message" (besides still unfulfilled desire to optimize memory usage) was apparent special handling of exception with messages by CPython. Well, the message is still just an exception argument, it just printed specially. Implement that with PRINT_EXC printing format. | ||
* | Rename rt_* to mp_*. | Damien George | 2014-03-30 |
| | | | | | | | 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. | ||
* | objexcept: Fix another place missing proper args tuple initialization. | Paul Sokolovsky | 2014-03-30 |
| | |||
* | py: Change mp_const_* objects to macros. | Damien George | 2014-03-29 |
| | | | | Addresses issue #388. | ||
* | objgenerator: close(): Throw instance of GeneratorExit (not type). | Paul Sokolovsky | 2014-03-28 |
| | | | | | To comply with Python semantics and allow use of mp_obj_is_subclass_fast() for exception matching. | ||
* | py: Thin out predefined exceptions. | Damien George | 2014-03-27 |
| | | | | | Only exceptions that are actually used are left prefedined. Hierarchy is still there, and removed exceptions are just commented out. | ||
* | Merge branch 'master' of github.com:micropython/micropython | Damien George | 2014-03-26 |
|\ | |||
| * | objexcept: Add mp_obj_exception_get_value() convenience function. | Paul Sokolovsky | 2014-03-26 |
| | | | | | | | | | | | | | | 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. | ||
* | | Merge branch 'gen-close-ret-val' of github.com:pfalcon/micropython into ↵ | Damien George | 2014-03-26 |
|\ \ | | | | | | | | | | pfalcon-gen-close-ret-val | ||
| * | | objgenerator: Implement return with value and .close() method. | Paul Sokolovsky | 2014-03-26 |
| | | | | | | | | | | | | | | | | | | 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. | ||
* | | | py: Add support for user-defined iterators via __iter__, __next__. | Damien George | 2014-03-26 |
| |/ |/| | |||
* | | py: Removed some unnecessary exception objects. | Damien George | 2014-03-25 |
| | | | | | | | | | | They still exist in commented-out form in objexcept.c if they are ever needed. | ||
* | | objexcept: Add "args" exception attribute, as well as StopIteration.value. | Paul Sokolovsky | 2014-03-25 |
|/ | |||
* | py: Remove some unnecessary exception objects. | Damien George | 2014-03-22 |
| | |||
* | Added exception hierarchy except for OSError and UnicodeError (requires ↵ | Rachel Dowdall | 2014-03-22 |
| | | | | arguments). Comment out the errors that aren't needed if memory becomes an issue. | ||
* | Added ZeroDivisionError to float division. | Rachel Dowdall | 2014-03-20 |
| | |||
* | py: Clean up includes. | xbe | 2014-03-17 |
| | | | | Remove unnecessary includes. Add includes that improve portability. | ||
* | py: Fix printing of type name. | Damien George | 2014-03-09 |
| | |||
* | py: VM never throws an exception, instead returns a status and value. | Damien George | 2014-02-15 |
| | | | | | Addresses issue #290, and hopefully sets up things to allow generators throwing exceptions, etc. | ||
* | py: Improve exception bases, reduces ROM usage. | Damien George | 2014-02-15 |
| | | | | Thanks to @pfalcon for the tip! | ||
* | Implement proper exception type hierarchy. | Damien George | 2014-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 George | 2014-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. | ||
* | objexcept: Fix a case of initialized object field. | Paul Sokolovsky | 2014-02-15 |
| | |||
* | Remove mp_obj_new_exception_msg_1_arg and _2_arg. | Damien George | 2014-02-12 |
| | |||
* | Replace global "static" -> "STATIC", to allow "analysis builds". Part 1. | Paul Sokolovsky | 2014-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(). | ||
* | Typo fixes in comments. | Paul Sokolovsky | 2014-01-31 |
| | |||
* | py: Msg in exception is no longer interned. | Damien George | 2014-01-29 |
| | |||
* | Revamp qstrs: they now include length and hash. | Damien George | 2014-01-21 |
| | | | | | Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h | ||
* | py: Add full traceback to exception printing. | Damien George | 2014-01-19 |
| | |||
* | py: Add module/function/class name to exceptions. | Damien George | 2014-01-19 |
| | | | | | | | Exceptions know source file, line and block name. Also tidy up some debug printing functions and provide a global flag to enable/disable them. |