[ctypes-users] Accessing C part of PyObjects?
by Tim Ansell other posts by this author
Nov 16 2006 7:31AM messages near this date
Re: [ctypes-users] A recursive Structure
|
Re: [ctypes-users] Accessing C part of PyObjects?
Hello,
I'm currently trying to access the C parts of some python objects. (Such
as the SDL Surface of a Pygame Surface.)
To do this I need to know the structure of PyObject_HEAD which is a
macro which is specific to the python build. I think it would be nice if
ctypes included a definition of this macro. It could be generated at
build time and would fit well with the pythonapi module. Is there any
chance of something like this?
I've also included how I'm currently figuring out the PyObject_HEAD, if
anyone has better suggestions I would really like help.
Thanks for your time.
Tim Ansell
Thread:
Tim Ansell
Thomas Heller
Lenard Lindstrom
Thomas Heller
|