[PgPy] [ python-Bugs-1000300 ] Extension module C-API
noreply at pgfoundry.org
noreply at pgfoundry.org
Thu Apr 28 08:35:50 GMT 2005
Bugs item #1000300, was opened at 2005-04-28 01:35
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=442&aid=1000300&group_id=1000094
Category: Backend
Group: To do
Status: Open
Resolution: None
Priority: 7
Submitted By: James Pye (jwp)
Assigned to: James Pye (jwp)
Summary: Extension module C-API
Initial Comment:
Create a runtime C-API for the extension module similar to cStringIO's for access to the loaded modules types and various functions.
struct PyPgEM_RTAPI *PyPgEM_RTAPI;
PyPgEM_RTAPI = PyObject_GetAttrString(mod, "C-API");
PyPgEM_RTAPI->Type->Object;
PyPgEM_RTAPI->Function->PyErr_FromErrorData();
Something like that.
Currently, pl.c includes error.c for a dependency on some error functions that are used in the ist_* routines. If a pl is going to have pl specific features like ist_*, then this is necessary to avoid the redundancy of #including dependencies into the source or linking against the extension module(eww).
This will also obliterate the ton of PyObject_GetAttrString's on _init.
----------------------------------------------------------------------
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=442&aid=1000300&group_id=1000094
More information about the Python-general
mailing list