[pypy-svn] r50457 - pypy/branch/applevel-ctypes2/pypy/module/_ffi
fijal at codespeak.net
fijal at codespeak.net
Wed Jan 9 15:28:01 CET 2008
Author: fijal
Date: Wed Jan 9 15:28:00 2008
New Revision: 50457
Modified:
pypy/branch/applevel-ctypes2/pypy/module/_ffi/array.py
Log:
Strike down buggy and untranslatable __new__ (not used anyway)
Modified: pypy/branch/applevel-ctypes2/pypy/module/_ffi/array.py
==============================================================================
--- pypy/branch/applevel-ctypes2/pypy/module/_ffi/array.py (original)
+++ pypy/branch/applevel-ctypes2/pypy/module/_ffi/array.py Wed Jan 9 15:28:00 2008
@@ -94,15 +94,8 @@
self.ll_array = lltype.nullptr(rffi.VOIDP.TO)
free.unwrap_spec = ['self', ObjSpace]
-
-def descr_new_array_instance(space, w_type, w_shape, w_size_or_iterable):
- w_shape = space.interp_w(W_Array, w_shape)
- return space.wrap(W_ArrayInstance(space, w_shape, w_size_or_iterable))
-descr_new_array_instance.unwrap_spec = [ObjSpace, W_Root, W_Root, W_Root]
-
W_ArrayInstance.typedef = TypeDef(
'ArrayInstance',
- __new__ = interp2app(descr_new_array_instance),
__setitem__ = interp2app(W_ArrayInstance.setitem),
__getitem__ = interp2app(W_ArrayInstance.getitem),
buffer = GetSetProperty(W_ArrayInstance.getbuffer),
More information about the Pypy-commit
mailing list