diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-06 02:12:03 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-06 02:15:23 +0300 |
commit | 36dd19ae27ca72c064489c1a4bf7a942b5eecaea (patch) | |
tree | c102a7e222edfef14e9203e3bc473761e0cc4031 /py/runtime.h | |
parent | 4e1ed82583081a45501723bf9c920e8e776719f4 (diff) | |
download | micropython-36dd19ae27ca72c064489c1a4bf7a942b5eecaea.tar.gz micropython-36dd19ae27ca72c064489c1a4bf7a942b5eecaea.zip |
py: Revert mp_load_attr() to its previous state (not supporting default val).
Based on the discussion in #433. mp_load_attr() is critical-path function,
so any extra check will slowdown any script. As supporting default val
required only for getattr() builtin, move correspending implementation
there (still as a separate function due to concerns of maintainability
of such almost-duplicated code instances).
Diffstat (limited to 'py/runtime.h')
-rw-r--r-- | py/runtime.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/py/runtime.h b/py/runtime.h index a627fa509b..8e59550af5 100644 --- a/py/runtime.h +++ b/py/runtime.h @@ -45,7 +45,6 @@ mp_obj_t mp_call_method_n_kw_var(bool have_self, uint n_args_n_kw, const mp_obj_ void mp_unpack_sequence(mp_obj_t seq, uint num, mp_obj_t *items); mp_obj_t mp_store_map(mp_obj_t map, mp_obj_t key, mp_obj_t value); mp_obj_t mp_load_attr(mp_obj_t base, qstr attr); -mp_obj_t mp_load_attr_default(mp_obj_t base, qstr attr, mp_obj_t defval); void mp_load_method(mp_obj_t base, qstr attr, mp_obj_t *dest); void mp_load_method_maybe(mp_obj_t base, qstr attr, mp_obj_t *dest); void mp_store_attr(mp_obj_t base, qstr attr, mp_obj_t val); |