summaryrefslogtreecommitdiffstatshomepage
path: root/py/builtintables.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-15 12:42:52 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-15 12:42:52 +0100
commit58051117322bc7cd55c0d35168c0563a880c7689 (patch)
treeb8d8bda254e1437b9652208b1f0e3c202b85be46 /py/builtintables.c
parent256b319d566a434e5b553fdb9ea5bd8d0eb2af86 (diff)
downloadmicropython-58051117322bc7cd55c0d35168c0563a880c7689.tar.gz
micropython-58051117322bc7cd55c0d35168c0563a880c7689.zip
py: Add hex builtin function.
A one-liner, added especially for @pfalcon :)
Diffstat (limited to 'py/builtintables.c')
-rw-r--r--py/builtintables.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/builtintables.c b/py/builtintables.c
index cbf885844a..6cf12dffa9 100644
--- a/py/builtintables.c
+++ b/py/builtintables.c
@@ -60,6 +60,7 @@ STATIC const mp_map_elem_t mp_builtin_object_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_getattr), (mp_obj_t)&mp_builtin_getattr_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_globals), (mp_obj_t)&mp_builtin_globals_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_hash), (mp_obj_t)&mp_builtin_hash_obj },
+ { MP_OBJ_NEW_QSTR(MP_QSTR_hex), (mp_obj_t)&mp_builtin_hex_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_id), (mp_obj_t)&mp_builtin_id_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_isinstance), (mp_obj_t)&mp_builtin_isinstance_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_issubclass), (mp_obj_t)&mp_builtin_issubclass_obj },