diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-08 01:13:35 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-08 01:15:06 +0300 |
commit | b4efac14cde7dca4b3fd5ded9b29e11f97621d14 (patch) | |
tree | f8ff5d2331ba1ef4cd287091dad7e31651620f67 /py/obj.h | |
parent | d31a093f9c2bdc3c94917c928fb2cc8c26b39959 (diff) | |
download | micropython-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |