Re: [Python-Dev] PEP 384 status

2010-08-28 Thread Nick Coghlan
On Sun, Aug 29, 2010 at 4:52 AM, "Martin v. Löwis" wrote: >> This is from tp_new and tp_dealloc, right? I think we should probably >> provide assessors PyObject_Alloc and PyObject_FreeObject. > > Correct, and yes, that sounds like a good approach. > >>> - PyObject_Print is used, but can't be suppo

Re: [Python-Dev] PEP 384 status

2010-08-28 Thread Martin v. Löwis
> This is from tp_new and tp_dealloc, right? I think we should probably > provide assessors PyObject_Alloc and PyObject_FreeObject. Correct, and yes, that sounds like a good approach. >> - PyObject_Print is used, but can't be supported, as it uses a FILE* >> parameter > > I thought tp_print was

Re: [Python-Dev] PEP 384 status

2010-08-28 Thread Benjamin Peterson
2010/8/28 "Martin v. Löwis" : > I have now started an initial patch for PEP 384, in the pep-0384 branch. > This has the following features: > - modules can be compiled under Py_LIMITED_API > - Tools/scripts/abitype.py converts C code containing static >  PyTypeObject definitions to use the new API

Re: [Python-Dev] versioned .so files for Python 3.2

2010-08-28 Thread Martin v. Löwis
>> This leads me to a question: how do these configure options affect the >> PEP 384 stable ABI? That PEP is currently silent on the issue, while >> PEP 3149 appears to implicitly assume that "abi3" completely specifies >> the ABI. > > It's a great question - perhaps Martin can chime in? It may b

[Python-Dev] PEP 384 status

2010-08-28 Thread Martin v. Löwis
I have now started an initial patch for PEP 384, in the pep-0384 branch. This has the following features: - modules can be compiled under Py_LIMITED_API - Tools/scripts/abitype.py converts C code containing static PyTypeObject definitions to use the new API for type definitions. The following as