diff options
author | stijn <stinos@zoho.com> | 2015-02-14 18:44:31 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-03-20 23:13:32 +0000 |
commit | 3cc17c69ffd64dca55fe613f6e931585d8893c0d (patch) | |
tree | 73fe88917c5b65ac3fdb679e5aee7338ed2fa66b /py/bc.c | |
parent | 07b8dc68d667c212f9a3710b74e90e05e1032316 (diff) | |
download | micropython-3cc17c69ffd64dca55fe613f6e931585d8893c0d.tar.gz micropython-3cc17c69ffd64dca55fe613f6e931585d8893c0d.zip |
py: Allow retrieving a function's __name__.
Disabled by default. Enabled on unix and stmhal ports.
Diffstat (limited to 'py/bc.c')
-rw-r--r-- | py/bc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -62,7 +62,7 @@ STATIC NORETURN void fun_pos_args_mismatch(mp_obj_fun_bc_t *f, mp_uint_t expecte #elif MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_DETAILED nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_TypeError, "%s() takes %d positional arguments but %d were given", - mp_obj_fun_get_name(f), expected, given)); + qstr_str(mp_obj_fun_get_name(f)), expected, given)); #endif } |