Back to index

python3.2  3.2.2
Public Member Functions
ctypes.test.test_keeprefs.DeletePointerTestCase Class Reference

List of all members.

Public Member Functions

def X_test

Detailed Description

Definition at line 96 of file test_keeprefs.py.


Member Function Documentation

Definition at line 97 of file test_keeprefs.py.

00097 
00098     def X_test(self):
00099         class X(Structure):
00100             _fields_ = [("p", POINTER(c_char_p))]
00101         x = X()
00102         i = c_char_p("abc def")
00103         from sys import getrefcount as grc
00104         print("2?", grc(i))
00105         x.p = pointer(i)
00106         print("3?", grc(i))
00107         for i in range(320):
00108             c_int(99)
00109             x.p[0]
        print(x.p[0])

The documentation for this class was generated from the following file: