2007-10-21 | Paul Boddie | file changeset files shortlog | Fixed names of classes and functions to reflect their locations within classes. Added a module_attributes method to Module, a parameters method to Function, and an instance_attribute_names method to Class, with the latter providing repeatable ordering of instance attributes for classes. Added object and parameter table retrieval to the Importer class. Moved displacement list construction within the List class from the Table class, permitting incremental additions to tables and lists. |
paul@0 | 1 | #!/usr/bin/env python |
paul@0 | 2 | |
paul@0 | 3 | import micropython |
paul@0 | 4 | import sys |
paul@4 | 5 | |
paul@0 | 6 | i = micropython.Importer(sys.path) |
paul@4 | 7 | if len(sys.argv) < 2: |
paul@4 | 8 | m = i.load("micropython") |
paul@4 | 9 | #m = i.load_from_file("micropython/__init__.py") |
paul@4 | 10 | else: |
paul@4 | 11 | m = i.load_from_file(sys.argv[1]) |
paul@7 | 12 | i.vacuum() |
paul@7 | 13 | ot = i.get_object_table() |
paul@7 | 14 | pt = i.get_parameter_table() |
paul@0 | 15 | |
paul@0 | 16 | # vim: tabstop=4 expandtab shiftwidth=4 |