Source

pysvmlight / svmlight / test.py

Full commit
from ctypes import *

class PY1(Structure):
	_fields_ = [("i", c_int)]


class PY2(Structure):
	_fields_ = [("pytest", PY1)]

if __name__ == "__main__":
	t = CDLL("./test.so")
	py2 = PY2()
	t.stuff(py2)