[pypy-svn] r79434 - pypy/branch/reflex-support/pypy/module/cppyy

wlav at codespeak.net wlav at codespeak.net
Tue Nov 23 20:19:34 CET 2010


Author: wlav
Date: Tue Nov 23 20:19:33 2010
New Revision: 79434

Modified:
   pypy/branch/reflex-support/pypy/module/cppyy/converter.py
Log:
make immutable markers consistent

Modified: pypy/branch/reflex-support/pypy/module/cppyy/converter.py
==============================================================================
--- pypy/branch/reflex-support/pypy/module/cppyy/converter.py	(original)
+++ pypy/branch/reflex-support/pypy/module/cppyy/converter.py	Tue Nov 23 20:19:33 2010
@@ -44,6 +44,7 @@
 
 
 class ArrayTypeConverter(TypeConverter):
+    _immutable_ = True
     def __init__(self, space, array_size):
         if array_size <= 0:
             self.size = sys.maxint
@@ -208,6 +209,7 @@
 #        byteptr[0] = space.unwrap(space.id(w_value.getslotvalue(2)))
 
 class ShortArrayConverter(ShortPtrConverter):
+    _immutable_ = True
     def to_memory(self, space, w_obj, w_value, offset):
         # copy the full array (uses byte copy for now)
         fieldptr = self._get_fieldptr(space, w_obj, offset)
@@ -236,6 +238,7 @@
 #        byteptr[0] = space.unwrap(space.id(w_value.getslotvalue(2)))
 
 class LongArrayConverter(LongPtrConverter):
+    _immutable_ = True
     def to_memory(self, space, w_obj, w_value, offset):
         # copy the full array (uses byte copy for now)
         fieldptr = self._get_fieldptr(space, w_obj, offset)



More information about the Pypy-commit mailing list