[New-bugs-announce] [issue5056] PyAPI assumes OS can access shared data in loadable modules (windows can't)

Luke Kenneth Casson Leighton report at bugs.python.org
Sun Jan 25 17:08:14 CET 2009


New submission from Luke Kenneth Casson Leighton <lkcl at 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 <report at bugs.python.org>
<http://bugs.python.org/issue5056>
_______________________________________


More information about the New-bugs-announce mailing list