py: Implement __dict__ for instances.

Note that even though wrapped in MICROPY_CPYTHON_COMPAT, it is not
fully compatible because the modifications to the dictionary do not
propagate to the actual instance members.
This commit is contained in:
stijn
2014-12-23 14:06:55 +01:00
committed by Paul Sokolovsky
parent 7281d95aee
commit 3c014a67ea
3 changed files with 28 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ Q(__locals__)
Q(__main__)
Q(__module__)
Q(__name__)
Q(__dict__)
Q(__hash__)
Q(__next__)
Q(__qualname__)