diff options
author | Laurens Valk <laurens@pybricks.com> | 2020-07-17 22:31:09 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-11-22 12:10:35 +1100 |
commit | e2ca8ab8fc2f824dc7ebaa8fe65c4d2e7891080e (patch) | |
tree | 1a213f08c2d35b2fb0c94d3b0ff6a08dab4a93b5 /docs/esp8266/tutorial | |
parent | 01ceb9aca3707114dc05b7a45691074b3603a274 (diff) | |
download | micropython-e2ca8ab8fc2f824dc7ebaa8fe65c4d2e7891080e.tar.gz micropython-e2ca8ab8fc2f824dc7ebaa8fe65c4d2e7891080e.zip |
py/runtime: Allow types to use both .attr and .locals_dict.
Make it possible to proceed to a regular lookup in locals_dict if the
custom type->attr fails. This allows type->attr to extend rather than
completely replace the lookup in locals_dict.
This is useful for custom builtin classes that have mostly regular methods
but just a few special attributes/properties. This way, type->attr needs
to deal with the special cases only and the default lookup will be used for
generic methods.
Signed-off-by: Laurens Valk <laurens@pybricks.com>
Diffstat (limited to 'docs/esp8266/tutorial')
0 files changed, 0 insertions, 0 deletions