[pypy-svn] r74442 - pypy/trunk/pypy/module/cpyext

afa at codespeak.net afa at codespeak.net
Sat May 8 14:34:41 CEST 2010


Author: afa
Date: Sat May  8 14:34:40 2010
New Revision: 74442

Modified:
   pypy/trunk/pypy/module/cpyext/pyobject.py
Log:
A few comments


Modified: pypy/trunk/pypy/module/cpyext/pyobject.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/pyobject.py	(original)
+++ pypy/trunk/pypy/module/cpyext/pyobject.py	Sat May  8 14:34:40 2010
@@ -153,6 +153,7 @@
         self.py_objects_r2w = {} # { addr of raw PyObject -> w_obj }
         self.borrow_mapping = {} # { w_container -> { w_containee -> None } }
         self.borrowed_objects = {} # { addr of containee -> None }
+        # For tests
         self.non_heaptypes_w = []
 
     def _freeze_(self):
@@ -161,6 +162,7 @@
         return False
 
     def init_r2w_from_w2r(self):
+        """Rebuilds the dict py_objects_r2w on startup"""
         from pypy.module.cpyext.api import ADDR
         for w_obj, obj in self.py_objects_w2r.items():
             ptr = rffi.cast(ADDR, obj)



More information about the Pypy-commit mailing list