133 Commits (ac86e8449afebdef38b02af7acfc0ed535db9d94)

Author SHA1 Message Date
Damien George b1bbe966c4 py: Combine load_attr and store_attr type methods into one (attr). 10 years ago
Damien George 4d77e1a034 py: Use m_{new,renew,del} consistently. 10 years ago
Damien George 4852e09c79 py: Fix adding of traceback so that it appends to existing info. 10 years ago
Paul Sokolovsky 71ebd4b7f0 py: Implement UnicodeError. 10 years ago
Paul Sokolovsky fa3b895145 objexcept: Optimize traceback allocation for exception. 10 years ago
Paul Sokolovsky 29c4f92e13 objexcept: Optimize using messages without formatting substitutions. 10 years ago
Damien George 0b9ee86133 py: Add mp_obj_new_str_from_vstr, and use it where relevant. 10 years ago
Damien George 50149a5730 py: Use mp_arg_check_num in some _make_new functions. 10 years ago
Damien George b4b10fd350 py: Put all global state together in state structures. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George 109c1de015 py: Make gc.enable/disable just control auto-GC; alloc is still allowed. 10 years ago
Damien George 124df6f8d0 py: Add mp_pending_exception global variable, for VM soft interrupt. 10 years ago
Damien George e7a478204a py: Remove unused and unneeded SystemError exception. 10 years ago
Damien George 4859edb95b py: Fix dummy definition of BEGIN/END_ATOMIC_SECTION. 10 years ago
Damien George 8b03d944e2 py: Remove IOError since it's deprecated; use OSError instead. 10 years ago
Damien George 4bcd04bcad py: Tidy up exception matching; allow matching of tuple of exceptions. 10 years ago
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