diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-04-25 03:17:41 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-04-25 03:49:23 +0300 |
commit | 8b85d14b92a65e92862861038c0fe96e6c616c3e (patch) | |
tree | 237c7a0bad20fb8a31944a6bc7bbc51a97689d3a /py/vm.c | |
parent | cf5b6f6974a1ca7d835803a744d1daae12876dac (diff) |
modsys: Add basic sys.exc_info() implementation.
The implementation is very basic and non-compliant and provided solely for
CPython compatibility. The function itself is bad Python2 heritage, its
usage is discouraged.
Diffstat (limited to 'py/vm.c')
-rw-r--r-- | py/vm.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1228,6 +1228,10 @@ pending_exception_check: exception_handler: // exception occurred + #if MICROPY_PY_SYS_EXC_INFO + MP_STATE_VM(cur_exception) = nlr.ret_val; + #endif + #if SELECTIVE_EXC_IP // with selective ip, we store the ip 1 byte past the opcode, so move ptr back code_state->ip -= 1; |