ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ctypes-users
ctypes-users
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved