micropython

tests/list.py

138:4c95794770e6
2008-09-04 Paul Boddie Made object construction through MakeObject use details of a supplied class, reserving an extra location for type information. Changed some LoadAddress usage to LoadConst in order to feed instructions which require a value, not the type information of an object (which is what LoadAddress acting on a reference to an object, as opposed to an attribute, would provide). Added parameter default details to raw class and function information, although further default details are required. Added convenience methods to the RSVPMachine class for inspecting and stepping through execution of a program. Changed various RSVP implementations, fixing stack manipulation and returning from subroutines. Made the test of lists wider in scope.
     1 #!/usr/bin/env python     2      3 [1, 2, 3]     4 a = [1, 2, 3]     5 [1, [2, 3], 4, 5]     6 b = list((9, 8, 7))     7      8 # vim: tabstop=4 expandtab shiftwidth=4