2008-07-27 | Paul Boddie | raw annotate files changeset graph | Moved parts of the documentation into the docs directory. Rewrote the exceptions documentation. Introduced dynamic lambda objects since lambdas with defaults may employ a variation of default values, not a selection of one-time definitions. Made default parameter generation sensitive to the lambda case. Removed default parameters for lambdas from the image. Changed the known context in class invocations to instances of the new Undefined class (instead of Instance). Added a test of instance construction. Added a StoreContext instruction to support lambda objects. Make MakeObject an immediate instruction. |
1 This document describes various compatibility differences between micropython 2 and other Python implementations. 3 4 Class Attribute Assignment 5 -------------------------- 6 7 Python micropython 8 ------ ----------- 9 10 class C: 11 ... 12 13 # cls refers to C 14 15 cls.attr = value Class attribute Run-time error 16 assigned 17 18 Module Attribute Assignment 19 --------------------------- 20 21 Python micropython 22 ------ ----------- 23 24 import somemod 25 26 somemod.attr = value Module attribute Run-time error 27 assigned