summaryrefslogtreecommitdiffstatshomepage
path: root/py/qstrdefs.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-31 22:57:56 +0100
committerDamien George <damien.p.george@gmail.com>2014-03-31 22:57:56 +0100
commite44d26ae0c1b5d248fa4db112cdeabe404944f3c (patch)
tree03bad17caf73555d5880263e894b5dc2fdb5dbe2 /py/qstrdefs.h
parent4db727afea0082780fca558ff251afb4a8b32ad7 (diff)
downloadmicropython-e44d26ae0c1b5d248fa4db112cdeabe404944f3c.tar.gz
micropython-e44d26ae0c1b5d248fa4db112cdeabe404944f3c.zip
py: Implement __getattr__.
It's not completely satisfactory, because a failed call to __getattr__ should not raise an exception. __setattr__ could be implemented, but it would slow down all stores to a user created object. Need to implement some caching system.
Diffstat (limited to 'py/qstrdefs.h')
-rw-r--r--py/qstrdefs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h
index 457043938b..5c29ba1de0 100644
--- a/py/qstrdefs.h
+++ b/py/qstrdefs.h
@@ -26,6 +26,7 @@ Q(__add__)
Q(__sub__)
Q(__repr__)
Q(__str__)
+Q(__getattr__)
Q(micropython)
Q(byte_code)