aboutsummaryrefslogtreecommitdiff
path: root/py/showbc.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-27 18:02:25 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-27 18:02:25 +0000
commita5efcd474563ed4e3d979a619f073abab8379a09 (patch)
tree89ec313adc7023552dbb09ad92e0ba9ff00082ef /py/showbc.c
parenta9dc9b8f6dc29d842f0a7427cc3cf068ae1cfbea (diff)
py: Specify unary/binary op name in TypeError error message.
Eg, "() + 1" now tells you that __add__ is not supported for tuple and int types (before it just said the generic "binary operator"). We reuse the table of names for slot lookup because it would be a waste of code space to store the pretty name for each operator.
Diffstat (limited to 'py/showbc.c')
-rw-r--r--py/showbc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/py/showbc.c b/py/showbc.c
index abff93aec..1bdb96aaa 100644
--- a/py/showbc.c
+++ b/py/showbc.c
@@ -30,8 +30,6 @@
#include "py/bc0.h"
#include "py/bc.h"
-extern const qstr mp_binary_op_method_name[];
-
#if MICROPY_DEBUG_PRINTERS
#define DECODE_UINT { \