[pypy-svn] r32963 - in pypy/dist/pypy/translator/cli: . src

antocuni at codespeak.net antocuni at codespeak.net
Fri Oct 6 16:44:35 CEST 2006


Author: antocuni
Date: Fri Oct  6 16:44:33 2006
New Revision: 32963

Modified:
   pypy/dist/pypy/translator/cli/ilgenerator.py
   pypy/dist/pypy/translator/cli/src/pypylib.cs
Log:
Don't use serializable classes by default.



Modified: pypy/dist/pypy/translator/cli/ilgenerator.py
==============================================================================
--- pypy/dist/pypy/translator/cli/ilgenerator.py	(original)
+++ pypy/dist/pypy/translator/cli/ilgenerator.py	Fri Oct  6 16:44:33 2006
@@ -68,7 +68,7 @@
         self.code.closeblock()
 
     def begin_class(self, name, base=None, sealed=False, interfaces=(), abstract=False,
-                    beforefieldinit=False, serializable=True):
+                    beforefieldinit=False, serializable=False):
         if base is None:
             base = '[mscorlib]System.Object'
         s = ''

Modified: pypy/dist/pypy/translator/cli/src/pypylib.cs
==============================================================================
--- pypy/dist/pypy/translator/cli/src/pypylib.cs	(original)
+++ pypy/dist/pypy/translator/cli/src/pypylib.cs	Fri Oct  6 16:44:33 2006
@@ -157,7 +157,6 @@
         }
     }
 
-    [Serializable()]
     public class StringBuilder
     {
         System.Text.StringBuilder builder = new System.Text.StringBuilder();
@@ -291,7 +290,6 @@
 
     //The public interface List must implement is defined in
     // rpython.ootypesystem.ootype.List.GENERIC_METHODS
-    [Serializable()]
     public class List<T>: System.Collections.Generic.List<T>
     {
         public List(): base()
@@ -361,7 +359,6 @@
         }
     }
 
-    [Serializable()]
     public class ListOfVoid
     {
         int Count = 0;
@@ -387,7 +384,6 @@
         public void _ll_resize_le(int length) { this.Count = length; }
     }
 
-    [Serializable()]
     public class Dict<TKey, TValue>: System.Collections.Generic.Dictionary<TKey, TValue>
     {
         IEqualityComparer<TKey> comparer = null;
@@ -420,7 +416,6 @@
     }
 
     // it assumes TValue is a placeholder, it's not really used
-    [Serializable()]
     public class DictOfVoid<TKey, TValue>: System.Collections.Generic.Dictionary<TKey, TValue>
     {
         public int ll_length() { return this.Count; }
@@ -436,7 +431,6 @@
         }
     }
 
-    [Serializable()]
     public class DictVoidVoid
     {
         public int ll_length() { return 0; }
@@ -455,7 +449,6 @@
         */
     }
 
-    [Serializable()]
     public class DictItemsIterator<TKey, TValue>
     {
         IEnumerator<KeyValuePair<TKey, TValue>> it;
@@ -470,7 +463,6 @@
         public TValue ll_current_value() { return it.Current.Value; }
     }
 
-    [Serializable()]
     public class Record_Float_Signed {
         public double item0;
         public int item1;
@@ -483,7 +475,6 @@
         public override int GetHashCode() { return item0.GetHashCode(); }
     }
 
-    [Serializable()]
     public class Record_Float_Float {
         public double item0;
         public double item1;
@@ -496,7 +487,6 @@
         public override int GetHashCode() { return item0.GetHashCode(); }
     }
 
-    [Serializable()]
     public class Record_Stat_Result {
         public int item0, item1, item2, item3, item4, item5, item6, item7, item8, item9;
         public override string ToString() 



More information about the Pypy-commit mailing list