Back to index

python3.2  3.2.2
Classes | Functions
ctypes.test.test_internals Namespace Reference

Classes

class  ObjectsTestCase

Functions

def test_ptr_struct
 x = y.x del y print x._b_base_._objects

Function Documentation

x = y.x del y print x._b_base_._objects

Definition at line 88 of file test_internals.py.

00088 
00089     def test_ptr_struct(self):
00090         class X(Structure):
00091             _fields_ = [("data", POINTER(c_int))]
00092 
00093         A = c_int*4
00094         a = A(11, 22, 33, 44)
00095         self.assertEqual(a._objects, None)
00096 
00097         x = X()
        x.data = a