After poking through the code a bit, it looks to me like you could get a lot of the way towards closing this bug by just installing generic.h in /usr/include under a suitable name (/usr/include/python-apt/wrappers.h?), documenting which python-apt structures (if any) are *not* available via this interface, and making the various object types available (so that third-party code can type-check function parameters and so on). It's been a while since I wrote a Python extension, though, so I might be missing something important.
Daniel
signature.asc
Description: Digital signature