2007-10-21 | Paul Boddie | raw annotate files changeset graph | Added module_name to various objects, along with a full_name method in a Naming mix-in class, and a __repr__ method for more informative output. Added attribute listing methods to Class. Introduced more flexible handling of missing modules in visitFrom, visitGetattr and visitImport. Added missing AST node visitor methods and built-in types. Added testing of programs to the test script. |
1 #!/usr/bin/env python 2 3 import micropython 4 import sys 5 6 i = micropython.Importer(sys.path) 7 if len(sys.argv) < 2: 8 m = i.load("micropython") 9 #m = i.load_from_file("micropython/__init__.py") 10 i.vacuum() 11 else: 12 m = i.load_from_file(sys.argv[1]) 13 i.vacuum() 14 15 # vim: tabstop=4 expandtab shiftwidth=4