New submission from Luke Kenneth Casson Leighton <l...@lkcl.net>: an assumption has been made in the python core api that all operating systems "dynamic module loading" can access data segments. windows _cannot_ do this.
the "workaround" has been to statically link absolutely _everything_ into a single whopping great dll. the proper solution is to provide "accesser" functions: PyAPI_FUNC(PyObject *) PyErr_GetPyExc_OSError(void) { return (PyObject*)PyExc_OSError; } PyAPI_FUNC(char*) _PyStructSequence_Get_UnnamedField(void) { return PyStructSequence_UnnamedField; } ... actually the _best_ solution is to have everything that's needed in a vector-table [discussed on python-dev mailing list] ---------- components: Build messages: 80513 nosy: lkcl severity: normal status: open title: PyAPI assumes OS can access shared data in loadable modules (windows can't) versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5056> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com