diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-03-31 01:10:10 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-03-31 02:23:56 +0300 |
commit | a96d3d0840357e6015119c427e7052fd73d9be3a (patch) | |
tree | be6d651de8e64dbd5da5e2b16f0870b06fc248df /py/obj.c | |
parent | e0f2979aed58499e791b01a77190d7f266cc88ea (diff) | |
download | micropython-a96d3d0840357e6015119c427e7052fd73d9be3a.tar.gz micropython-a96d3d0840357e6015119c427e7052fd73d9be3a.zip |
objexcept: No more magic messages in exceptions, only exception arguments.
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.
Diffstat (limited to 'py/obj.c')
-rw-r--r-- | py/obj.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -62,7 +62,7 @@ void mp_obj_print_exception(mp_obj_t exc) { } } } - mp_obj_print(exc, PRINT_REPR); + mp_obj_print(exc, PRINT_EXC); printf("\n"); } |