micropython/micropython — pull request #433 by pfalcon (2014-04-05 10:36:44+00:00)
Title: py: Support 3-arg getattr() builtin (with default value).

Seeing mp_load_attr is references in emitnative.c, I chickened out to just add 3rd arg to it, and introduced 2nd func and wrapper. But fairly speaking, we should avoid such wrapper - if args are passed on stack, such wrappers largely increase its depth.