summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-08 01:13:35 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-08 01:15:06 +0300
commitb4efac14cde7dca4b3fd5ded9b29e11f97621d14 (patch)
treef8ff5d2331ba1ef4cd287091dad7e31651620f67 /py/obj.h
parentd31a093f9c2bdc3c94917c928fb2cc8c26b39959 (diff)
downloadmicropython-b4efac14cde7dca4b3fd5ded9b29e11f97621d14.tar.gz
micropython-b4efac14cde7dca4b3fd5ded9b29e11f97621d14.zip
py: Make sure getattr() works with non-interned strings (by interning them).
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index c7f0a9879e..d5ea40901c 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -468,6 +468,7 @@ uint mp_obj_str_get_len(mp_obj_t self_in);
qstr mp_obj_str_get_qstr(mp_obj_t self_in); // use this if you will anyway convert the string to a qstr
const char *mp_obj_str_get_str(mp_obj_t self_in); // use this only if you need the string to be null terminated
const char *mp_obj_str_get_data(mp_obj_t self_in, uint *len);
+mp_obj_t mp_obj_str_intern(mp_obj_t str);
void mp_str_print_quoted(void (*print)(void *env, const char *fmt, ...), void *env, const byte *str_data, uint str_len);
#if MICROPY_PY_BUILTINS_FLOAT