[pypy-svn] r66629 - pypy/branch/io-lang/pypy/lang/io

david at codespeak.net david at codespeak.net
Sat Jul 25 19:05:06 CEST 2009


Author: david
Date: Sat Jul 25 19:05:04 2009
New Revision: 66629

Modified:
   pypy/branch/io-lang/pypy/lang/io/object.py
Log:
appendProto on Object

Modified: pypy/branch/io-lang/pypy/lang/io/object.py
==============================================================================
--- pypy/branch/io-lang/pypy/lang/io/object.py	(original)
+++ pypy/branch/io-lang/pypy/lang/io/object.py	Sat Jul 25 19:05:04 2009
@@ -92,4 +92,9 @@
    for i in range(start, stop, step):
       w_context.slots[key] = W_Number(space, i)
       t = body.eval(space, w_context, w_context)
-   return t
\ No newline at end of file
+   return t
+   
+ at register_method('Object', 'appendProto', unwrap_spec=[object, object])
+def object_append_proto(space, w_target, w_proto):
+    w_target.protos.append(w_proto)
+    return w_target
\ No newline at end of file



More information about the Pypy-commit mailing list