• Paul Sokolovsky's avatar
    py: Revert mp_load_attr() to its previous state (not supporting default val). · 36dd19ae
    Paul Sokolovsky authored
    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).