micropython/tests/cmdline
Damien George c2a4e4effc py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function.
Hashing is now done using mp_unary_op function with MP_UNARY_OP_HASH as
the operator argument.  Hashing for int, str and bytes still go via
fast-path in mp_unary_op since they are the most common objects which
need to be hashed.

This lead to quite a bit of code cleanup, and should be more efficient
if anything.  It saves 176 bytes code space on Thumb2, and 360 bytes on
x86.

The only loss is that the error message "unhashable type" is now the
more generic "unsupported type for __hash__".
2015-05-12 22:46:02 +01:00
..
cmd_showbc.py tests: Fix cmd_showbc now that LOAD_CONST_ELLIPSIS bytecode is gone. 2015-05-05 23:58:52 +01:00
cmd_showbc.py.exp py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function. 2015-05-12 22:46:02 +01:00
cmd_verbose.py tests: Add ability to test uPy cmdline executable. 2015-03-13 10:58:34 +00:00
cmd_verbose.py.exp py: Simplify bytecode prelude when encoding closed over variables. 2015-04-07 00:08:17 +01:00
repl_basic.py tests: Add ability to test uPy cmdline executable. 2015-03-13 10:58:34 +00:00
repl_basic.py.exp tests: Adjust expected output, since Travis can't do git describe. 2015-03-20 21:31:50 +00:00
repl_cont.py tests: Add missing tests for builtins, and many other things. 2015-04-04 22:05:30 +01:00
repl_cont.py.exp tests: Add missing tests for builtins, and many other things. 2015-04-04 22:05:30 +01:00