Results 1 to 2 of 2
Thread: wrapping C pointers
- 08-05-08, 01:31 PM #1Registered TeamPlayer
- Join Date
- 06-02-07
- Posts
- 173
wrapping C pointers
Is there a type safe way to wrap C pointers in Python objects? I only know how to wrap a void pointer in a PyCObject at the moment, which is a little worrisome...
- 08-05-08, 03:30 PM #2
Re: wrapping C pointers
Not using PyCObect.
PyCObject does do pointer wrapping, but to keep it generic it makes void* the type. If you want something more type-safe, you have to make something like PyCObject that has a member variable of exactly the type you want to wrap.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)


LinkBack URL
About LinkBacks



Reply With Quote


















Bookmarks