CVS: python/mspgcc memory.py,1.1,1.2

Chris Liechti <[email protected]> Thu, 18 May 2006 15:54:48 -0700
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/python/mspgcc
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv20405/python/mspgcc

Modified Files:
	memory.py 
Log Message:
better ouptut if objects are printed

Index: memory.py
===================================================================
RCS file: /cvsroot/mspgcc/python/mspgcc/memory.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- memory.py	11 Apr 2006 18:35:23 -0000	1.1
+++ memory.py	18 May 2006 22:54:46 -0000	1.2
@@ -43,6 +43,9 @@
     def __len__(self):
         return len(self.segments)
 
+    def __repr__(self):
+        return "Memory:\n%s" % ('\n'.join([repr(seg) for seg in self.segments]),)
+    
     # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
     def loadIHex(self, file):



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642