summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-15 21:40:48 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-15 21:40:48 +0000
commite2fb2baaa48ef6da317a533b5d168b1ab0fcefe8 (patch)
treefda27be68f5ca1e8ec860bab8d1acdeebeeda698 /py/runtime.c
parent9528cd66d7c94d7376884a53c2080b29e9bc3a0a (diff)
downloadmicropython-e2fb2baaa48ef6da317a533b5d168b1ab0fcefe8.tar.gz
micropython-e2fb2baaa48ef6da317a533b5d168b1ab0fcefe8.zip
Implement repr.
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/runtime.c b/py/runtime.c
index 3d8f0c9a7e..cbdee01dde 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -134,6 +134,7 @@ void rt_init(void) {
mp_map_add_qstr(&map_builtins, MP_QSTR_pow, (mp_obj_t)&mp_builtin_pow_obj);
mp_map_add_qstr(&map_builtins, MP_QSTR_print, (mp_obj_t)&mp_builtin_print_obj);
mp_map_add_qstr(&map_builtins, MP_QSTR_range, (mp_obj_t)&mp_builtin_range_obj);
+ mp_map_add_qstr(&map_builtins, MP_QSTR_repr, (mp_obj_t)&mp_builtin_repr_obj);
mp_map_add_qstr(&map_builtins, MP_QSTR_sorted, (mp_obj_t)&mp_builtin_sorted_obj);
mp_map_add_qstr(&map_builtins, MP_QSTR_sum, (mp_obj_t)&mp_builtin_sum_obj);