2011-02-25 | Paul Boddie | raw annotate files changeset graph | Fixed constant raw image generation to actually refer to the class of each constant. Referenced NoneType and NotImplementedType so that the standard constants can be generated. Added a __class__ attribute to function instances. Fixed exception raising so that __class__ is included in allocated exception instances. Fixed item retrieval from list fragments which had erroneously been changed to resemble tuple item retrieval. Fixed list fragment reference initialisation for list literals. Added start and end parameters to the RSVPMachine.show method. Added an up method to RSVPMachine as a complement to the step and run methods. |
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