Improved struct module
Fredrik Lundh
fredrik at pythonware.com
Wed Oct 13 04:20:05 EDT 1999
Tim Peters <tim_one at email.msn.com> wrote:
> > Another reason for providing the buffer interface is to facilitate writing
> > extension modules for C APIs that make heavily use of C structs. The most
> > notorious example I know is the MQI interface of IBMs MQSeries. I think it
> > defines more than 20 C structs, all of which I can define in
> > Python now and still interact nicely with the Python MQI extension module
> > written in C.
>
> Haven't heard of this, but don't people use SWIG anymore <0.7 wink>?
real programmers don't ;-)
http://www.nightmare.com/~rushing/dynwin/index.html
(uses Sam's calldll and npstruct modules to access every
little corner of windows without any custom win32 inter-
faces)
(and uiTookit/win32 uses a similar approach, of course)
</F>
coming soon:
http://www.pythonware.com/people/fredrik/librarybook.htm
More information about the Python-list
mailing list