[pypy-svn] r51514 - pypy/dist/pypy/lib/_ctypes

fijal at codespeak.net fijal at codespeak.net
Fri Feb 15 11:03:59 CET 2008


Author: fijal
Date: Fri Feb 15 11:03:58 2008
New Revision: 51514

Modified:
   pypy/dist/pypy/lib/_ctypes/keepalive.txt
Log:
Document places that call KeepRef


Modified: pypy/dist/pypy/lib/_ctypes/keepalive.txt
==============================================================================
--- pypy/dist/pypy/lib/_ctypes/keepalive.txt	(original)
+++ pypy/dist/pypy/lib/_ctypes/keepalive.txt	Fri Feb 15 11:03:58 2008
@@ -13,4 +13,24 @@
   it simply keeps objects to be kept alive.
 
 * there are (some) rules about when to put stuff in it's objects when
-  accessing the fields etc. need to list them here.
\ No newline at end of file
+  accessing the fields etc. need to list them here.
+
+  * each object has _objects dictionary. In this dict stuff is stored per
+    key, which should be a tuple of indices of storages.
+
+places storing stuff in _objects:
+
+* array item assignement, if we share the storage
+
+* pointer item assignement, if we share the storage
+
+* getitem on CDLL stores function pointer
+
+* CFuncPtr.__new__ (assuming that it's a ctypes callable), stores itself
+  (XXX???)
+
+* set contents on pointer
+
+* set value on primitive or __init__ on primitive
+
+    
\ No newline at end of file



More information about the Pypy-commit mailing list