diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-27 18:02:25 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-27 18:02:25 +0000 |
commit | a5efcd474563ed4e3d979a619f073abab8379a09 (patch) | |
tree | 89ec313adc7023552dbb09ad92e0ba9ff00082ef /tests/extmod/zlibd_decompress.py | |
parent | a9dc9b8f6dc29d842f0a7427cc3cf068ae1cfbea (diff) | |
download | micropython-a5efcd474563ed4e3d979a619f073abab8379a09.tar.gz micropython-a5efcd474563ed4e3d979a619f073abab8379a09.zip |
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 'tests/extmod/zlibd_decompress.py')
0 files changed, 0 insertions, 0 deletions