mailr5484 - /1.3/data/mol_res_spin.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on April 09, 2008 - 11:19:
Author: bugman
Date: Wed Apr  9 11:14:09 2008
New Revision: 5484

URL: http://svn.gna.org/viewcvs/relax?rev=5484&view=rev
Log:
Added a docstring to the MoleculeList.__repr__() method.


Modified:
    1.3/data/mol_res_spin.py

Modified: 1.3/data/mol_res_spin.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/data/mol_res_spin.py?rev=5484&r1=5483&r2=5484&view=diff
==============================================================================
--- 1.3/data/mol_res_spin.py (original)
+++ 1.3/data/mol_res_spin.py Wed Apr  9 11:14:09 2008
@@ -425,6 +425,12 @@
 
 
     def __repr__(self):
+        """The string representation of the object.
+
+        Rather than using the standard Python conventions (either the string 
representation of the
+        value or the "<...desc...>" notation), a rich-formatted description 
of the object is given.
+        """
+
         text = "Molecules.\n\n"
         text = text + "%-8s%-8s%-10s" % ("Index", "Name", "Selected") + "\n"
         for i in xrange(len(self)):




Related Messages


Powered by MHonArc, Updated Wed Apr 09 11:20:11 2008