summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-04-06 02:12:03 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-04-06 02:15:23 +0300
commit36dd19ae27ca72c064489c1a4bf7a942b5eecaea (patch)
treec102a7e222edfef14e9203e3bc473761e0cc4031 /py/runtime.h
parent4e1ed82583081a45501723bf9c920e8e776719f4 (diff)
downloadmicropython-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.h1
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);