This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: PyAPI assumes OS can access shared data in loadable modules (windows can't)
Type: Stage:
Components: Build Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: eckhardt, lkcl
Priority: normal Keywords: patch

Created on 2009-01-25 16:08 by lkcl, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
data_into_fns.patch lkcl, 2009-01-25 19:02
Messages (2)
msg80513 - (view) Author: Luke Kenneth Casson Leighton (lkcl) Date: 2009-01-25 16:08
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]
msg80523 - (view) Author: Luke Kenneth Casson Leighton (lkcl) Date: 2009-01-25 19:02
apologies - case of mistaken identity!

patch attached - beginnings of moving data over to accessor-functions.
attached here because it is relevant for "vector-table" future work.

please close this bug.
History
Date User Action Args
2022-04-11 14:56:44adminsetgithub: 49306
2009-01-29 08:59:59eckhardtsetnosy: + eckhardt
2009-01-25 20:17:59pitrousetstatus: open -> closed
resolution: not a bug
2009-01-25 19:03:06lkclsetfiles: + data_into_fns.patch
keywords: + patch
messages: + msg80523
2009-01-25 16:08:13lkclcreate