On 02/03/2014 02:06 PM, Gregory P. Smith wrote:
Wouldn't your proposal to extend the PyMethodDef structure would
require ifdef's and make it impossible to include the type information
in something compiled against the 3.3 headers that you want to use in
3.4 without recompiling?
It might use #ifdefs. However, my proposal was forwards-compatible.
When iterating over the methoddef array passed in with a type, if the
PyMethodDef flags parameter had METH_SIGNATURE set, I'd advance by
sizeof(PyMethodDefEx) bytes, otherwise I'd advance by
sizeof(PyMethodDef) bytes. Modules compiled against 3.3 would not have
the flag set, therefore I'd advance by the right amount, therefore they
should be fine.
//arry/
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com