_Files vs __files (&1.4 vs 1.5a3) was: [PYTHONMAC-SIG] Mac SWIG &
dynamic loading MacPython modules
Jack Jansen
Jack.Jansen@cwi.nl
Tue, 16 Sep 1997 10:40:59 +0200
>
> Jack's suggestion does not work with MacPython 1.4 --
> There is a "_Files" among the exported symbols, but not a "__files"
>
> DumpPEF show that the symbol "__files" does appear in "PythonCore 1.5a3"
That's right: __files is the symbol used by the new MSL C library (which
Python 1.5 uses, and apparently MacSWIG uses too). _Files is the symbol used
by the old Plaugher C library. Mixing the two in a program that uses stdio.h
is impossible, as far as I know.
> Replacing the 1.4 PythonCorePPC with than one and rebuilding does link
> without any errors. Running Python 1.5a3 and importing the example
> module produces this warning ( however, the module does appear to work
> properly. )
>
> Python 1.5a3 (#0, Aug 4 1997, 16:50:52) [CW PPC w/GUSI w/MSL]
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>> import example
> WARNING: Python C API version mismatch for module example:
> This Python has API version 1007, module example has version 1006.
> >>>
And if you load the 1.5a3 developers kit (from the same place where you found
the 1.5a3 distribution) you should be able to compile your example again
without this error. This is probably a prudent thing to do, because there are
quite some changes in the Python API...
--
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
_______________