[pypy-svn] r74876 - pypy/trunk/pypy/objspace
afa at codespeak.net
afa at codespeak.net
Fri May 28 22:09:31 CEST 2010
Author: afa
Date: Fri May 28 22:09:29 2010
New Revision: 74876
Modified:
pypy/trunk/pypy/objspace/descroperation.py
Log:
add missing object_delattr, copied from object_setattr
Modified: pypy/trunk/pypy/objspace/descroperation.py
==============================================================================
--- pypy/trunk/pypy/objspace/descroperation.py (original)
+++ pypy/trunk/pypy/objspace/descroperation.py Fri May 28 22:09:29 2010
@@ -21,6 +21,13 @@
return w_setattr
object_setattr._annspecialcase_ = 'specialize:memo'
+def object_delattr(space):
+ "Utility that returns the app-level descriptor object.__delattr__."
+ w_src, w_delattr = space.lookup_in_type_where(space.w_object,
+ '__delattr__')
+ return w_delattr
+object_delattr._annspecialcase_ = 'specialize:memo'
+
def raiseattrerror(space, w_obj, name, w_descr=None):
w_type = space.type(w_obj)
typename = w_type.getname(space, '?')
More information about the Pypy-commit
mailing list