|
Original |
Translation |
|
1112
|
Problem 2: SWIG generates the following code when generating wrappers to void functions:
|
|
|
1113
|
Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj;
|
|
|
1114
|
Alas, Py_None is a macro that expands to a reference to a complex data structure called _Py_NoneStruct inside pythonNN.dll. Again, this code will fail in a mult-compiler environment. Replace such code by:
|
|
|
1115
|
return Py_BuildValue("");
|
|
|
1116
|
It may be possible to use SWIG's ``%typemap`` command to make the change automatically, though I have not been able to get this to work (I'm a complete SWIG newbie).
|
|
|
1117
|
|
1118
|
How do I use Python for CGI?
|
|
|
1119
|
On the Microsoft IIS server or on the Win95 MS Personal Web Server you set up Python in the same way that you would set up any other scripting engine.
|
|
|
1120
|
|
|
|
1121
|
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\ScriptMap
|
|