[pypy-svn] r51555 - pypy/dist/pypy/lib/_ctypes

fijal at codespeak.net fijal at codespeak.net
Sat Feb 16 14:23:18 CET 2008


Author: fijal
Date: Sat Feb 16 14:23:18 2008
New Revision: 51555

Modified:
   pypy/dist/pypy/lib/_ctypes/array.py
Log:
it seems that this code is completely irrelevant.


Modified: pypy/dist/pypy/lib/_ctypes/array.py
==============================================================================
--- pypy/dist/pypy/lib/_ctypes/array.py	(original)
+++ pypy/dist/pypy/lib/_ctypes/array.py	Sat Feb 16 14:23:18 2008
@@ -70,20 +70,6 @@
     def _alignmentofinstances(self):
         return self._type_._alignmentofinstances()
 
-    def from_param(self, value):
-        # check for iterable
-        # shortcut
-        if isinstance(value, self):
-            return value
-        try:
-            iter(value)
-        except ValueError:
-            return _CDataMeta.from_param(self, value)
-        else:
-            if len(value) > self._length_:
-                raise ValueError("%s too long" % (value,))
-            return self(*value)
-
 def array_get_slice_params(self, index):
     if index.step is not None:
         raise TypeError("3 arg slices not supported (for no reason)")



More information about the Pypy-commit mailing list