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

2009-01-29 Thread Ulrich Eckhardt

Changes by Ulrich Eckhardt :


--
nosy: +eckhardt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-01-25 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
resolution:  -> invalid
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-01-25 Thread Luke Kenneth Casson Leighton

Luke Kenneth Casson Leighton  added the comment:

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.

--
keywords: +patch
Added file: http://bugs.python.org/file12855/data_into_fns.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-01-25 Thread Luke Kenneth Casson Leighton

New submission from Luke Kenneth Casson Leighton :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com