[pypy-svn] r50628 - pypy/branch/applevel-ctypes2/pypy/lib/_ctypes
arigo at codespeak.net
arigo at codespeak.net
Tue Jan 15 15:12:16 CET 2008
Author: arigo
Date: Tue Jan 15 15:12:15 2008
New Revision: 50628
Modified:
pypy/branch/applevel-ctypes2/pypy/lib/_ctypes/pointer.py
Log:
Revert this.
Modified: pypy/branch/applevel-ctypes2/pypy/lib/_ctypes/pointer.py
==============================================================================
--- pypy/branch/applevel-ctypes2/pypy/lib/_ctypes/pointer.py (original)
+++ pypy/branch/applevel-ctypes2/pypy/lib/_ctypes/pointer.py Tue Jan 15 15:12:15 2008
@@ -25,7 +25,10 @@
self._array = ffiarray(1)
self.contents = value
obj._ffiarray = ffiarray
- obj.__init__ = __init__
+ else:
+ def __init__(self, value=0):
+ raise TypeError("%s has no type" % obj)
+ obj.__init__ = __init__
return obj
def from_param(self, value):
More information about the Pypy-commit
mailing list