-
- Downloads
modsys: Add sys.print_exception(exc, file=sys.stdout) function.
The function is modeled after traceback.print_exception(), but unbloated, and put into existing module to save overhead on adding another module. Compliant traceback.print_exception() is intended to be implemented in micropython-lib in terms of sys.print_exception(). This change required refactoring mp_obj_print_exception() to take pfenv_t interface arguments. Addresses #751.
Showing
- bare-arm/main.c 3 additions, 2 deletionsbare-arm/main.c
- py/modsys.c 27 additions, 0 deletionspy/modsys.c
- py/obj.c 8 additions, 8 deletionspy/obj.c
- py/obj.h 1 addition, 1 deletionpy/obj.h
- py/pfenv.h 3 additions, 0 deletionspy/pfenv.h
- py/qstrdefs.h 1 addition, 0 deletionspy/qstrdefs.h
- qemu-arm/main.c 3 additions, 2 deletionsqemu-arm/main.c
- qemu-arm/test_main.c 2 additions, 2 deletionsqemu-arm/test_main.c
- stmhal/extint.c 2 additions, 1 deletionstmhal/extint.c
- stmhal/pyexec.c 3 additions, 2 deletionsstmhal/pyexec.c
- stmhal/timer.c 2 additions, 1 deletionstmhal/timer.c
- teensy/timer.c 2 additions, 1 deletionteensy/timer.c
- unix-cpy/main.c 2 additions, 1 deletionunix-cpy/main.c
- unix/main.c 3 additions, 2 deletionsunix/main.c
Loading
Please register or sign in to comment