[Python-Dev] microsoft dlls apparently don't support data. implications: PyAPI functions required to access data across modules.
Luke Kenneth Casson Leighton
lkcl at lkcl.net
Sun Jan 25 16:58:48 CET 2009
according to the wikipedia entry on dlls, dlls do not support data,
only functions. which would explain two things:
1) why certain modules are forcibly linked into pythonNN.dll
2) why attempts to move them out of pythonNN.dll cause runtime crashes.
so i will continue the experiment, and remove all the "data"
references from the pythonNN.def that i added, and deal with the
knock-on consequences, which will involve adding "get" functions.
for example, PyAPI_FUNC(char*) _PyStructSequence_Get_UnnamedField(void)
use of such functions will allow various bits and pieces - such as
PyStructSequence_UnnamedField - to be converted back to static in
their respective c files.
any objections, speak now, because this will involve quite a bit of work.
l.
More information about the Python-Dev
mailing list