micropython

tests/instance.py

110:b198f939f7bb
2008-07-28 Paul Boddie Added notes about handling default parameter values at run-time. Added a details field to the structure layouts. Fixed the temporary storage optimisation to ensure that references to existing temporary storage locations are preserved correctly. Added some support for tuples. Improved the instance test, adding a failing version.
     1 #!/usr/bin/env python     2      3 class C:     4     pass     5      6 class D:     7     def __init__(self):     8         pass     9     10 class E:    11     def __init__(self, x):    12         pass    13     14 c = C()    15 d = D()    16 e = E(1)    17     18 # vim: tabstop=4 expandtab shiftwidth=4