67 Commits (7ff996c2377b191ff829e6e03815acf9bfe85a14)

Author SHA1 Message Date
Damien George d182b98a37 py: Change all uint to mp_uint_t in obj.h. 10 years ago
Damien George 9c4cbe2ac0 py: Make tuple and list use mp_int_t/mp_uint_t. 10 years ago
Damien George ecc88e949c Change some parts of the core API to use mp_uint_t instead of uint/int. 10 years ago
Damien George e5cbb70328 stmhal: Make enable_irq and disable_irq inline functions. 10 years ago
Dave Hylands 9480138f0c Add save/restore_irq 10 years ago
Dave Hylands 5b7fd20fea Add support for storing args during an exception raised by an irq. 11 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Damien George f0b29729aa py, objexcept: Only check for locked gc if gc is enabled. 11 years ago
Dave Hylands 2fe841d2fa Try not to cause a MemoryError when raising an exception during nterrupt handling. 11 years ago
Chris Angelico daf973ae00 Change comments (mainly URLs) to no longer specifically say Python 3.3 11 years ago
Damien George 2617eebf2f Change const byte* to const char* where sensible. 11 years ago
Damien George 7a4ddd2428 Add SystemExit exception and use it in unix/ and stmhal/ ports. 11 years ago
Paul Sokolovsky 52386cafa0 objexcept: Implement explicit __init__ method, useful for subclasses. 11 years ago
Antonin ENFRUN da1fffaa09 Fix some unused variables, and silence a clang warning about initialization override in vmentrytable.h 11 years ago
Damien George 2323ef9182 py: Rename globally-accessible tuple functions, prefix with mp_obj_. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Paul Sokolovsky f54bcbf099 py, unix: Make "mpconfig.h" be first included, as other headers depend on it. 11 years ago
Paul Sokolovsky 91e556af23 objexcept: Support tracebacks for user Exception subclasses. 11 years ago
Paul Sokolovsky d8351ca8a0 objtype: .print() Exception instances in adhoc way. 11 years ago
Paul Sokolovsky 1acf22f17b objexcept: Don't store args tuple within exception object. 11 years ago
Paul Sokolovsky dec31bb872 objexcept: Add mp_obj_new_exception_arg1() convenience function. 11 years ago
Damien George 58ba4c3b4c py: Check explicitly for memory allocation failure in parser. 11 years ago
Damien George f0954e3fac py: Add emergency exception object for when heap allocation fails. 11 years ago
Damien George ea13f407a3 py: Change nlr_jump to nlr_raise, to aid in debugging. 11 years ago
Damien George 6902eeda25 py: Add m_malloc_fail function to handle memory allocation error. 11 years ago
Paul Sokolovsky a96d3d0840 objexcept: No more magic messages in exceptions, only exception arguments. 11 years ago
Damien George d17926db71 Rename rt_* to mp_*. 11 years ago
Paul Sokolovsky 24a140a444 objexcept: Fix another place missing proper args tuple initialization. 11 years ago
Damien George 07ddab529c py: Change mp_const_* objects to macros. 11 years ago
Paul Sokolovsky c4d589e2bb objgenerator: close(): Throw instance of GeneratorExit (not type). 11 years ago
Damien George c63f984647 py: Thin out predefined exceptions. 11 years ago
Damien George 9e6e935df0 py: Add support for user-defined iterators via __iter__, __next__. 11 years ago
Paul Sokolovsky af1ae30399 objexcept: Add mp_obj_exception_get_value() convenience function. 11 years ago
Paul Sokolovsky 962b1cd1b1 objgenerator: Implement return with value and .close() method. 11 years ago
Damien George ffb5cfc8d8 py: Removed some unnecessary exception objects. 11 years ago
Paul Sokolovsky 9512e9e817 objexcept: Add "args" exception attribute, as well as StopIteration.value. 11 years ago
Damien George c91097223d py: Remove some unnecessary exception objects. 11 years ago
Rachel Dowdall 721c55dced Added exception hierarchy except for OSError and UnicodeError (requires arguments). Comment out the errors that aren't needed if memory becomes an issue. 11 years ago
Rachel Dowdall 300c8bd4c2 Added ZeroDivisionError to float division. 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago
Damien George 0ec6bd47cb py: Fix printing of type name. 11 years ago
Damien George c8f78bc280 py: VM never throws an exception, instead returns a status and value. 11 years ago
Paul Sokolovsky ff4678c5b4 objexcept: Fix thinko with args to mp_obj_new_list(). 11 years ago
Damien George 22a0865d54 py: Improve exception bases, reduces ROM usage. 11 years ago
Damien George c5966128c7 Implement proper exception type hierarchy. 11 years ago
Damien George a71c83a1d1 Change mp_obj_type_t.name from const char * to qstr. 11 years ago
Paul Sokolovsky 60a0d3f1db objexcept: Fix a case of initialized object field. 11 years ago
Damien George 099a9cb575 Remove mp_obj_new_exception_msg_1_arg and _2_arg. 11 years ago
Paul Sokolovsky d5df6cd44a Replace global "static" -> "STATIC", to allow "analysis builds". Part 1. 11 years ago
Paul Sokolovsky 027594e1a7 Typo fixes in comments. 11 years ago