mailr17139 - /trunk/data/prototype.py


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

Header


Content

Posted by edward on July 02, 2012 - 21:36:
Author: bugman
Date: Mon Jul  2 21:36:49 2012
New Revision: 17139

URL: http://svn.gna.org/viewcvs/relax?rev=17139&view=rev
Log:
The spin container hidden objects are now replicated when the object is 
copied.

The old Prototype.__deepcopy__() method was skipping all hidden objects, but 
now only objects
starting with '__' are skipped.


Modified:
    trunk/data/prototype.py

Modified: trunk/data/prototype.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/data/prototype.py?rev=17139&r1=17138&r2=17139&view=diff
==============================================================================
--- trunk/data/prototype.py (original)
+++ trunk/data/prototype.py Mon Jul  2 21:36:49 2012
@@ -40,8 +40,8 @@
 
         # Loop over all objects in self and make deepcopies of them.
         for name in dir(self):
-            # Skip all names begining with '_'.
-            if search('^_', name):
+            # Skip all names begining with '__'.
+            if search('^__', name):
                 continue
 
             # Skip the class methods.




Related Messages


Powered by MHonArc, Updated Mon Jul 02 22:00:02 2012