[pypy-svn] r78881 - pypy/branch/fast-forward/pypy/interpreter

afa at codespeak.net afa at codespeak.net
Mon Nov 8 17:52:06 CET 2010


Author: afa
Date: Mon Nov  8 17:52:04 2010
New Revision: 78881

Modified:
   pypy/branch/fast-forward/pypy/interpreter/typedef.py
Log:
Code objects are weakrefable.


Modified: pypy/branch/fast-forward/pypy/interpreter/typedef.py
==============================================================================
--- pypy/branch/fast-forward/pypy/interpreter/typedef.py	(original)
+++ pypy/branch/fast-forward/pypy/interpreter/typedef.py	Mon Nov  8 17:52:04 2010
@@ -714,6 +714,7 @@
     co_name = interp_attrproperty('co_name', cls=PyCode),
     co_firstlineno = interp_attrproperty('co_firstlineno', cls=PyCode),
     co_lnotab = interp_attrproperty('co_lnotab', cls=PyCode),
+    __weakref__ = make_weakref_descr(PyCode),
     )
 PyCode.typedef.acceptable_as_base_class = False
 



More information about the Pypy-commit mailing list