[PYTHONMAC-SIG] Calling any toolbox routine from Python

Jack Jansen Jack.Jansen@cwi.nl
Wed, 12 Feb 1997 17:14:55 +0100


> Doesn't Visual Basic have a similar escape into the C world?  I
> believe I've seen include files that declared a bunch of entry points
> with their address and the type of the arguments.  It seemed obvious
> that by specifying the wrong address or type you could blow up the
> system but of course the include files that are part of the
> distribution can be trusted in the same sense that you can trust
> Python extension modules.

Yes, that's the other option but it is a bit more work. The "luxury" version I 
was thinking of would have something like
	FooBar = dllcaller('FooBar', formatstring)
where formatstring would somehow describe the arguments and return values. 
dllcaller would then return a callable object with the correct calling 
sequence, and it would perform argument checking.
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@cwi.nl      | ++++ if you agree copy these lines to your sig ++++
http://www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm 



_______________
PYTHONMAC-SIG  - SIG on Python for the Apple Macintosh

send messages to: pythonmac-sig@python.org
administrivia to: pythonmac-sig-request@python.org
_______________