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.
This commit is contained in:
Damien George
2014-03-31 22:57:56 +01:00
parent 4db727afea
commit e44d26ae0c
5 changed files with 65 additions and 41 deletions

View File

@@ -26,6 +26,7 @@ Q(__add__)
Q(__sub__)
Q(__repr__)
Q(__str__)
Q(__getattr__)
Q(micropython)
Q(byte_code)